CI builds now support RULES (#2608)

For Windows the PCRE library has to be built.
On ubuntu and macos the pre-installed library is being used.
This commit is contained in:
amai2012 2020-04-19 10:46:51 +02:00 committed by GitHub
parent e2efb338b6
commit 67a70ee228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 8 deletions

View File

@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: true
fail-fast: false # not worthwhile...
runs-on: ${{ matrix.os }}
@ -31,15 +31,15 @@ jobs:
- name: Build cppcheck
run: |
make -j2 USE_Z3=yes
make -j2 USE_Z3=yes HAVE_RULES=yes
- name: Build test
run: |
make -j2 testrunner USE_Z3=yes
make -j2 testrunner USE_Z3=yes HAVE_RULES=yes
- name: Test
run: |
make -j2 check USE_Z3=yes
make -j2 check USE_Z3=yes HAVE_RULES=yes
- name: Validate
run: |

View File

@ -26,13 +26,27 @@ jobs:
- name: Setup msbuild.exe
uses: microsoft/setup-msbuild@v1.0.0
- name: Install PCRE
run: |
curl -fsSL https://ftp.pcre.org/pub/pcre/pcre-8.44.zip -o pcre-8.44.zip
7z x pcre-8.44.zip
cd pcre-8.44
cmake . -G "Visual Studio 16 2019" -A x64
msbuild -m PCRE.sln /p:Configuration=Release /p:Platform=x64
dir
dir Release
dir x64
dir x64\Release
copy pcre.h ..\externals
copy Release\pcre.lib ..\externals\pcre64.lib
- name: Install Z3 library
run: |
curl -fsSL https://github.com/Z3Prover/z3/releases/download/z3-4.8.7/z3-4.8.7-x64-win.zip -o z3-4.8.7-win.zip
7z x z3-4.8.7-win.zip -oexternals -r -y
move externals\z3-4.8.7-x64-win externals\z3
- name: Install Qt
uses: jurplel/install-qt-action@v2
@ -51,14 +65,15 @@ jobs:
dir Build\gui
del Build\gui\cppcheck-gui.ilk
del Build\gui\cppcheck-gui.pdb
- name: Build x64 debug configuration using MSBuild
run: msbuild -m cppcheck.sln /p:Configuration=Debug
run: msbuild -m cppcheck.sln /p:Configuration=Debug-PCRE /p:Platform=x64
- name: Run Debug test
run: .\bin\debug\testrunner.exe
- name: Build x64 release configuration using MSBuild
run: msbuild -m cppcheck.sln /p:Configuration=Release
run: msbuild -m cppcheck.sln /p:Configuration=Release-PCRE /p:Platform=x64
- name: Run Release test
run: .\bin\testrunner.exe
@ -68,6 +83,16 @@ jobs:
name: cppcheck_gui
path: Build\gui
- uses: actions/upload-artifact@v2-preview
with:
name: cppcheck_gui
path: ./**/cfg/*.cfg
- uses: actions/upload-artifact@v2-preview
with:
name: cppcheck_gui
path: ./**/platforms/*.xml
- uses: actions/upload-artifact@v2-preview
with:
name: cppcheck_gui