Skip to content

Commit

Permalink
update more ci arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtrombetta committed Feb 14, 2024
1 parent 982c032 commit d6f358b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-check-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/rustup component add clippy; /root/.cargo/bin/cargo clippy --all-targets --all-features -- -D warnings"
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; rustup component add clippy; cargo clippy --all-targets --all-features -- -D warnings"

test-cpu:
name: Test the CPU backend
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v3
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/cargo test --features cpu"
- run: docker run --rm -v "$PWD":/src:ro -w /src --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; cargo test --features cpu"

test-gpu:
name: Test the GPU backend
Expand All @@ -43,4 +43,4 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3
- run: docker run --rm -v "$PWD":/src:ro -w /src --gpus all --privileged rust:1.76 /bin/bash -c "nvidia-smi"
- run: docker run --rm -v "$PWD":/src:ro -w /src --gpus all --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; /root/.cargo/bin/cargo test --features gpu"
- run: docker run --rm -v "$PWD":/src:ro -w /src --gpus all --privileged rust:1.76 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; cargo test --features gpu"

0 comments on commit d6f358b

Please sign in to comment.