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:
parent
e2efb338b6
commit
67a70ee228
|
@ -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: |
|
||||
|
|
|
@ -27,6 +27,20 @@ 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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue