Skip to content

Commit a761c37

Browse files
committed
[ci] use matrix configuration for release and debug
1 parent e2d1da3 commit a761c37

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/build_with_vcpkg_no_cuda.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ env:
2525

2626
jobs:
2727
build:
28-
name: ${{ matrix.os }}
28+
name: ${{ matrix.os }} (${{ matrix.config }})
2929
runs-on: ${{ matrix.os }}
3030
strategy:
3131
fail-fast: false
3232
matrix:
3333
os: [windows-latest]
34+
config: [release, debug]
3435

3536
steps:
3637
- name: Checkout repository
@@ -52,18 +53,10 @@ jobs:
5253
# vcpkgGitCommitId is intentionally omitted: run-vcpkg reads the commit
5354
# hash from the builtin-baseline field in vcpkg.json automatically.
5455

55-
- name: Build (Release)
56+
- name: Build (${{ matrix.config }})
5657
uses: lukka/run-cmake@v10
5758
with:
58-
configurePreset: 'vcpkg-release'
59+
configurePreset: 'vcpkg-${{ matrix.config }}'
5960
configurePresetAdditionalArgs: "['-DCCTAG_WITH_CUDA:BOOL=OFF']"
60-
buildPreset: 'vcpkg-release'
61-
testPreset: 'vcpkg-release'
62-
63-
- name: Build (Debug)
64-
uses: lukka/run-cmake@v10
65-
with:
66-
configurePreset: 'vcpkg-debug'
67-
configurePresetAdditionalArgs: "['-DCCTAG_WITH_CUDA:BOOL=OFF']"
68-
buildPreset: 'vcpkg-debug'
69-
testPreset: 'vcpkg-debug'
61+
buildPreset: 'vcpkg-${{ matrix.config }}'
62+
testPreset: 'vcpkg-${{ matrix.config }}'

0 commit comments

Comments
 (0)