From 1fa9c9d8c3d6cbde25cf95e4d02e566812f10f79 Mon Sep 17 00:00:00 2001 From: Elia Zonta Date: Thu, 21 Sep 2023 10:32:05 +0200 Subject: [PATCH] workflow trial --- .github/workflows/c-cpp.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 343fb15..c414897 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -7,7 +7,7 @@ on: branches: [ "main" ] jobs: - build: + build-sequential: runs-on: ubuntu-latest @@ -19,16 +19,17 @@ jobs: - name: make sequential run: make sequential - # - name: cuda-toolkit - # uses: Jimver/cuda-toolkit@v0.2.11 - # id: cuda-toolkit - # with: - # cuda: '12.1.0' - # run: nvcc -V - - # - name: make parallel - # uses: Jimver/cuda-toolkit@v0.2.11 - # id: cuda-toolkit - # with: - # cuda: '12.1.0' - # run: make parallel \ No newline at end of file + build-cuda: + runs-on: ubuntu-latest + + steps: + - uses: Jimver/cuda-toolkit@v0.2.11 + id: cuda-toolkit + with: + cuda: '12.1.0' + + - run: echo "Installed cuda version is: ${{steps.cuda-toolkit.outputs.cuda}}" + + - run: echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}" + + - run: nvcc -V \ No newline at end of file