Skip to content
Closed
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
23 changes: 14 additions & 9 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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/[email protected]
Expand All @@ -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/[email protected]
id: cuda-toolkit
with:
cuda: '12.4.0'
cuda: ${{ matrix.cuda }}
sub-packages: '["nvcc"]'
method: 'network'

Expand All @@ -148,7 +153,7 @@ jobs:
uses: actions/[email protected]
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: |
Expand Down
Loading