diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index ac6cd57..db2e5e2 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -34,7 +34,7 @@ jobs: - name: Dependencies (Linux) if: runner.os == 'Linux' run: | - sudo apt-get install ccache + sudo apt-get install -y ccache echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" - name: Dependencies (macOS) @@ -107,19 +107,24 @@ jobs: - name: Tests run: cd build; ctest --verbose -j ${{ steps.cpu-cores.outputs.count }} - build_cuda: # no runtime support for CUDA, so only build on Linux - name: ${{ matrix.name }} CUDA (${{ matrix.config }}) + build_cuda: + name: ${{ matrix.name }} CUDA (${{ matrix.config }}) - CUDA ${{ matrix.cuda }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-latest] - config: - - Debug - # - Release # cannot run multiple cuda-toolkit jobs in parallel + config: [Debug, Release] + cuda: ['12.5.0', '11.8.0'] include: - os: ubuntu-latest name: Linux + config: Debug + cuda: '12.5.0' + - os: ubuntu-latest + name: Linux + config: Release + cuda: '11.8.0' steps: - name: Checkout repository uses: actions/checkout@v4.0.0 @@ -129,13 +134,13 @@ jobs: - name: Dependencies (Linux) if: runner.os == 'Linux' run: | - sudo apt-get install ccache + sudo apt-get install -y ccache echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" - uses: Jimver/cuda-toolkit@v0.2.17 id: cuda-toolkit with: - cuda: '12.4.0' + cuda: ${{ matrix.cuda }} sub-packages: '["nvcc"]' method: 'network' @@ -148,7 +153,7 @@ jobs: uses: actions/cache@v4.0.2 with: path: ${{ env.CACHE_PATH }} - key: ${{ runner.os }}-${{ matrix.config }}-CUDA-cache + key: ${{ runner.os }}-${{ matrix.config }}-CUDA-${{ matrix.cuda }}-cache - name: Prepare ccache run: |