@@ -175,29 +175,41 @@ jobs:
175
175
check-vs-2019-build-and-test :
176
176
runs-on : windows-2019
177
177
env :
178
- SCRIPT_DIR : .github/workflows/vs2019
178
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
179
179
steps :
180
- - name : Checkout the repository
181
- uses : actions/checkout@v2
180
+ - uses : actions/checkout@v2
182
181
with :
183
- submodules : recursive
184
-
185
- - name : Install bison and flex
186
- run : " ${{env.SCRIPT_DIR}}\\ install-bison.bat"
187
-
188
- - name : Install z3
182
+ submodules : true
183
+ - name : Fetch dependencies
189
184
run : |
190
- Invoke-WebRequest "https://github.com/Z3Prover/z3/releases/download/z3-4.8.8/z3-4.8.8-x64-win.zip" -OutFile z3.zip
191
- Expand-Archive z3.zip
192
- # We need Get-ChildItem.Name here because the path includes
193
- # the z3 version number, which we expect to change.
194
- echo "$(Get-Location)\z3\$((Get-ChildItem z3).Name)" >> $env:GITHUB_PATH
195
-
196
- - name : Build cbmc
197
- run : " ${{env.SCRIPT_DIR}}\\ build-cbmc.bat"
198
-
185
+ choco install winflexbison3
186
+ nuget install clcache -OutputDirectory "c:\tools" -ExcludeVersion -Version 4.1.0
187
+ echo "c:\tools\clcache\clcache-4.1.0" >> $env:GITHUB_PATH
188
+ - name : Setup Visual Studio environment
189
+
190
+ - name : Prepare ccache
191
+ uses : actions/cache@v2
192
+ with :
193
+ path : .ccache
194
+ key : ${{ runner.os }}-msbuild-${{ github.ref }}-${{ github.sha }}
195
+ restore-keys : |
196
+ ${{ runner.os }}-msbuild-${{ github.ref }}
197
+ ${{ runner.os }}-msbuild
198
+ - name : ccache environment
199
+ run : |
200
+ echo "CLCACHE_BASEDIR=$((Get-Item -Path '.\').FullName)" >> $env:GITHUB_ENV
201
+ echo "CLCACHE_DIR=$pwd\.ccache" >> $env:GITHUB_ENV
202
+ - name : Configure with cmake
203
+ run : cmake -S . -B build
204
+ - name : Build Release
205
+ run : cmake --build build --config Release -- /p:UseMultiToolTask=true /p:CLToolExe=clcache
206
+ - name : Print ccache stats
207
+ run : clcache -s
208
+
199
209
- name : Test cbmc
200
- run : " ${{env.SCRIPT_DIR}}\\ run-tests.bat"
210
+ run : |
211
+ Set-Location build
212
+ ctest -V -L CORE -C Release . -j2
201
213
202
214
check-clang-format :
203
215
runs-on : ubuntu-20.04
@@ -239,21 +251,21 @@ jobs:
239
251
MERGE_BRANCH : ${{ github.ref }}
240
252
run : ./.github/workflows/pull-request-check-cpplint.sh
241
253
242
- # I just added this to check if my stuff is working on github actions
243
254
windows-msi-package :
244
255
runs-on : windows-2019
245
256
env :
246
257
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
247
258
steps :
248
259
- uses : actions/checkout@v2
249
260
with :
250
- submodules : recursive
261
+ submodules : true
251
262
- name : Fetch dependencies
252
263
run : |
253
264
choco install winflexbison3
254
265
nuget install clcache -OutputDirectory "c:\tools" -ExcludeVersion -Version 4.1.0
255
266
echo "c:\tools\clcache\clcache-4.1.0" >> $env:GITHUB_PATH
256
- -
uses :
microsoft/[email protected]
267
+ - name : Setup Visual Studio environment
268
+
257
269
- name : Prepare ccache
258
270
uses : actions/cache@v2
259
271
with :
@@ -267,14 +279,9 @@ jobs:
267
279
echo "CLCACHE_BASEDIR=$((Get-Item -Path '.\').FullName)" >> $env:GITHUB_ENV
268
280
echo "CLCACHE_DIR=$pwd\.ccache" >> $env:GITHUB_ENV
269
281
- name : Configure with cmake
270
- run : |
271
- New-Item -ItemType Directory -Path build
272
- Set-Location build
273
- cmake ..
282
+ run : cmake -S . -B build
274
283
- name : Build Release
275
- run : |
276
- Set-Location build
277
- cmake --build . --config Release -- /p:UseMultiToolTask=true /p:CLToolExe=clcache
284
+ run : cmake --build build --config Release -- /p:UseMultiToolTask=true /p:CLToolExe=clcache
278
285
- name : Print ccache stats
279
286
run : clcache -s
280
287
- name : Create packages
0 commit comments