File tree 1 file changed +5
-4
lines changed
cmake-init/templates/common/.github/workflows
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -97,25 +97,26 @@ jobs:
97
97
98
98
strategy :
99
99
matrix :
100
- os : [macos, ubuntu, windows]{type shared}
100
+ os : [macos-latest , ubuntu-latest , windows-2022 ]{type shared}
101
101
102
102
type : [shared, static]
103
103
104
104
include :
105
105
- { type: shared, shared: YES }
106
106
- { type: static, shared: NO }{end}
107
107
108
- runs-on : ${{ matrix.os }}-latest
108
+ runs-on : ${{ matrix.os }}
109
109
110
110
steps :
111
111
- uses : actions/checkout@v2
112
112
113
113
- name : Install static analyzers
114
- if : matrix.os == 'ubuntu'
114
+ if : matrix.os == 'ubuntu-latest '
115
115
run : sudo apt-get install clang-tidy cppcheck -y -q
116
116
117
117
- 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}
119
120
-D BUILD_SHARED_LIBS=${{ matrix.shared }}{end}
120
121
121
122
- name : Build
You can’t perform that action at this time.
0 commit comments