Skip to content

Commit 8dd8ac9

Browse files
committed
Switch the template's CI to windows-2022
1 parent 15f4056 commit 8dd8ac9

File tree

1 file changed

+5
-4
lines changed
  • cmake-init/templates/common/.github/workflows

1 file changed

+5
-4
lines changed

cmake-init/templates/common/.github/workflows/ci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -97,25 +97,26 @@ jobs:
9797

9898
strategy:
9999
matrix:
100-
os: [macos, ubuntu, windows]{type shared}
100+
os: [macos-latest, ubuntu-latest, windows-2022]{type shared}
101101

102102
type: [shared, static]
103103

104104
include:
105105
- { type: shared, shared: YES }
106106
- { type: static, shared: NO }{end}
107107

108-
runs-on: ${{ matrix.os }}-latest
108+
runs-on: ${{ matrix.os }}
109109

110110
steps:
111111
- uses: actions/checkout@v2
112112

113113
- name: Install static analyzers
114-
if: matrix.os == 'ubuntu'
114+
if: matrix.os == 'ubuntu-latest'
115115
run: sudo apt-get install clang-tidy cppcheck -y -q
116116

117117
- name: Configure
118-
run: cmake --preset=ci-${{ matrix.os }}{type shared}
118+
shell: pwsh
119+
run: cmake "--preset=ci-$("${{ matrix.os }}".split("-")[0])"{type shared}
119120
-D BUILD_SHARED_LIBS=${{ matrix.shared }}{end}
120121

121122
- name: Build

0 commit comments

Comments
 (0)