From 23d3ed7ee46e041f450c5e735e1920c2e6275631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Tue, 23 Nov 2021 13:36:54 +0100 Subject: [PATCH] CI: add a build targetting nvptx cuda --- .github/workflows/nalgebra-ci-build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nalgebra-ci-build.yml b/.github/workflows/nalgebra-ci-build.yml index dd8c169f..5bbd9ffa 100644 --- a/.github/workflows/nalgebra-ci-build.yml +++ b/.github/workflows/nalgebra-ci-build.yml @@ -29,8 +29,8 @@ jobs: # env: # RUSTFLAGS: -D warnings steps: + # Needed for the --all-features build which enables cuda support. - uses: Jimver/cuda-toolkit@v0.2.4 - id: cuda-toolkit - uses: actions/checkout@v2 - name: Build --no-default-feature run: cargo build --no-default-features; @@ -112,3 +112,11 @@ jobs: run: xargo build --verbose --no-default-features -p nalgebra-glm --target=x86_64-unknown-linux-gnu; - name: build thumbv7em-none-eabihf nalgebra-glm run: xargo build --verbose --no-default-features -p nalgebra-glm --target=thumbv7em-none-eabihf; + build-cuda: + runs-on: ubuntu-latest + steps: + - uses: Jimver/cuda-toolkit@v0.2.4 + - name: build --no-default-features --features cuda + run: cargo build --no-default-features --features cuda + - name: build --no-default-features --features cuda --target=nvptx-nvidia-cuda + run: cargo build --no-default-features --features cuda --target=nvptx-nvidia-cuda \ No newline at end of file