Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

bump rust toolchain and dependencies #7

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: [ubuntu-latest]
strategy:
matrix:
cuda: ["12.2.0-devel-ubuntu20.04", "12.0.0-devel-ubuntu20.04"]
cuda: ["12.0.0-devel-ubuntu20.04", "12.5.0-devel-ubuntu20.04"]
container:
image: nvidia/cuda:${{ matrix.cuda }}
steps:
Expand All @@ -37,15 +37,15 @@ jobs:
- name: Setup rust
run: |
rustup set profile minimal
rustup toolchain install nightly-2023-08-21
rustup default nightly-2023-08-21
rustup toolchain install nightly-2024-05-07
rustup default nightly-2024-05-07

- name: Build tests and copy binaries to a separate dir
shell: bash
run: |
mkdir artifacts
CARGO_TARGET_DIR=./build \
cargo +nightly-2023-08-21 test --no-run --release --message-format=json -q \
cargo +nightly-2024-05-07 test --no-run --release --message-format=json -q \
| jq -r 'select(.executable != null) | .executable' \
| while read binary; do
cp "$binary" artifacts/
Expand All @@ -70,29 +70,29 @@ jobs:
run: |
nvidia-smi

- name: Download test binaries built with CUDA 12.2
uses: actions/download-artifact@v3
with:
name: era-cuda-12.2.0-devel-ubuntu20.04-test-binaries
path: era-cuda-test-binaries/12.2

- name: Download test binaries built with CUDA 12.0
uses: actions/download-artifact@v3
with:
name: era-cuda-12.0.0-devel-ubuntu20.04-test-binaries
path: era-cuda-test-binaries/12.0

- name: Run test binaries built with CUDA 12.2
id: test_cuda_12_2
- name: Download test binaries built with CUDA 12.5
uses: actions/download-artifact@v3
with:
name: era-cuda-12.5.0-devel-ubuntu20.04-test-binaries
path: era-cuda-test-binaries/12.5

- name: Run test binaries built with CUDA 12.5
id: test_cuda_12_5
continue-on-error: true
run: |
for binary in era-cuda-test-binaries/12.2/*; do
for binary in era-cuda-test-binaries/12.5/*; do
chmod +x $binary
$binary
done

- name: Run test binaries built with CUDA 12.0
if: steps.test_cuda_12_2.outcome == 'failure' || steps.test_cuda_12_2.outcome == 'success'
if: steps.test_cuda_12_5.outcome == 'failure' || steps.test_cuda_12_5.outcome == 'success'
run: |
for binary in era-cuda-test-binaries/12.0/*; do
chmod +x $binary
Expand Down
Loading
Loading