28
28
matrix :
29
29
job : [1, 2, 3, 4, 5, 6, 7, 8]
30
30
31
- os : [macos, ubuntu, windows]
31
+ os : [macos-latest , ubuntu-latest , windows-2022 ]
32
32
33
33
include :
34
34
- { job: 1, type: "-s --examples", name: "Library (C++): shared", flag: "-D BUILD_SHARED_LIBS=YES" }
@@ -42,13 +42,13 @@ jobs:
42
42
43
43
name : ${{ matrix.name }} (${{ matrix.os }})
44
44
45
- runs-on : ${{ matrix.os }}-latest
45
+ runs-on : ${{ matrix.os }}
46
46
47
47
steps :
48
48
- uses : actions/checkout@v2
49
49
50
50
- name : Install static analyzers
51
- if : matrix.os == 'ubuntu'
51
+ if : matrix.os == 'ubuntu-latest '
52
52
run : sudo apt-get install clang-tidy cppcheck -y -q
53
53
54
54
- uses : actions/setup-python@v2
@@ -66,12 +66,14 @@ jobs:
66
66
python ../cmake-init.pyz --vcpkg headeronly -h
67
67
68
68
- name : Lint generated project
69
- if : matrix.os == 'ubuntu'
69
+ if : matrix.os == 'ubuntu-latest '
70
70
working-directory : proj
71
71
run : cmake -D FORMAT_COMMAND=clang-format-11 -P cmake/lint.cmake
72
72
73
73
- name : Configure
74
- run : cmake -S proj --preset=ci-${{ matrix.os }} ${{ matrix.flag }}
74
+ shell : pwsh
75
+ run : cmake -S proj "--preset=ci-$("${{ matrix.os }}".split("-")[0])"
76
+ ${{ matrix.flag }}
75
77
76
78
- name : Build
77
79
run : cmake --build proj/build --config Release
0 commit comments