Skip to content

Commit 4aa8707

Browse files
committed
choose build runner shell with the matrix
1 parent 781d500 commit 4aa8707

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,18 @@ jobs:
1313
matrix:
1414
include:
1515
- os: ubuntu-latest
16+
shell: bash
1617
- os: macos-latest
18+
shell: bash
1719
- os: windows-latest
20+
shell: msys2 {0}
1821

1922
runs-on: ${{ matrix.os }}
2023

24+
defaults:
25+
run:
26+
shell: ${{ matrix.shell }}
27+
2128
steps:
2229
- uses: actions/checkout@v4
2330
with:
@@ -45,12 +52,10 @@ jobs:
4552
mingw-w64-clang-x86_64-ninja
4653
4754
- name: configure
48-
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}
4955
run: |
5056
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release
5157
5258
- name: build
53-
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}
5459
run: |
5560
cmake --build build
5661

0 commit comments

Comments
 (0)