Update workflows to Ubuntu 20.04 (#2948)
This commit is contained in:
parent
ecfabbcdbb
commit
2eb326de83
|
@ -103,7 +103,7 @@ jobs:
|
||||||
|
|
||||||
# Run self check after "Build GUI" to include generated headers in analysis
|
# Run self check after "Build GUI" to include generated headers in analysis
|
||||||
- name: Self check
|
- name: Self check
|
||||||
if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'ubuntu-20.04'
|
||||||
run: |
|
run: |
|
||||||
# compile with verification and ast matchers
|
# compile with verification and ast matchers
|
||||||
make clean
|
make clean
|
||||||
|
@ -118,14 +118,14 @@ jobs:
|
||||||
./cppcheck -q -j$(nproc) --template=gcc -D__CPPCHECK__ --error-exitcode=1 --inline-suppr --suppressions-list=.travis_suppressions --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2/ -Icli -Igui --inconclusive --enable=style,performance,portability,warning,internal --exception-handling test/*.cpp tools
|
./cppcheck -q -j$(nproc) --template=gcc -D__CPPCHECK__ --error-exitcode=1 --inline-suppr --suppressions-list=.travis_suppressions --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2/ -Icli -Igui --inconclusive --enable=style,performance,portability,warning,internal --exception-handling test/*.cpp tools
|
||||||
|
|
||||||
- name: Build triage on ubuntu
|
- name: Build triage on ubuntu
|
||||||
if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'ubuntu-20.04'
|
||||||
run: |
|
run: |
|
||||||
pushd tools/triage
|
pushd tools/triage
|
||||||
qmake
|
qmake
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
||||||
- name: Build Fuzzer
|
- name: Build Fuzzer
|
||||||
if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'ubuntu-20.04'
|
||||||
run: |
|
run: |
|
||||||
g++ -fsyntax-only -std=c++11 -Ilib oss-fuzz/*.cpp
|
g++ -fsyntax-only -std=c++11 -Ilib oss-fuzz/*.cpp
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,7 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
strategy:
|
runs-on: ubuntu-20.04
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
fail-fast: false # not worthwhile...
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -21,11 +16,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libz3-4 libz3-dev
|
sudo apt-get install libz3-4 libz3-dev
|
||||||
cp externals/z3_version_old.h externals/z3_version.h
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cp externals/z3_version_old.h externals/z3_version.h
|
|
||||||
CC=clang CXX=clang++ CXXFLAGS="-fsanitize=address -O1 -g3 -DCPPCHK_GLIBCXX_DEBUG" make cppcheck testrunner -j$(nproc) USE_Z3=yes HAVE_RULES=yes MATCHCOMPILER=yes
|
CC=clang CXX=clang++ CXXFLAGS="-fsanitize=address -O1 -g3 -DCPPCHK_GLIBCXX_DEBUG" make cppcheck testrunner -j$(nproc) USE_Z3=yes HAVE_RULES=yes MATCHCOMPILER=yes
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|
|
@ -4,7 +4,7 @@ on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
convert_via_pandoc:
|
convert_via_pandoc:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -24,8 +24,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libxml2-utils
|
sudo apt-get install libxml2-utils
|
||||||
sudo apt-get install z3 libz3-dev
|
sudo apt-get install libz3-dev libz3-4
|
||||||
cp externals/z3_version_old.h externals/z3_version.h
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|
|
@ -7,7 +7,7 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -16,13 +16,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libxml2-utils
|
sudo apt-get install libxml2-utils
|
||||||
sudo apt-get install z3 libz3-dev
|
sudo apt-get install libz3-dev libz3-4
|
||||||
sudo apt-get install lcov
|
sudo apt-get install lcov
|
||||||
pip install lcov_cobertura
|
pip install lcov_cobertura
|
||||||
|
|
||||||
- name: Compile instrumented
|
- name: Compile instrumented
|
||||||
run: |
|
run: |
|
||||||
cp externals/z3_version_old.h externals/z3_version.h
|
|
||||||
make test CXXFLAGS="-g -fprofile-arcs -ftest-coverage" USE_Z3=yes HAVE_RULES=yes -j$(nproc)
|
make test CXXFLAGS="-g -fprofile-arcs -ftest-coverage" USE_Z3=yes HAVE_RULES=yes -j$(nproc)
|
||||||
|
|
||||||
- name: Generate coverage report
|
- name: Generate coverage report
|
||||||
|
@ -35,7 +34,7 @@ jobs:
|
||||||
lcov --extract lcov_tmp.info "$(pwd)/*" --output-file lcov.info
|
lcov --extract lcov_tmp.info "$(pwd)/*" --output-file lcov.info
|
||||||
genhtml lcov.info -o coverage_report --frame --legend --demangle-cpp
|
genhtml lcov.info -o coverage_report --frame --legend --demangle-cpp
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Coverage results
|
name: Coverage results
|
||||||
path: coverage_report
|
path: coverage_report
|
||||||
|
|
|
@ -4,7 +4,7 @@ on: [pull_request, create]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
if: github.repository == 'danmar/cppcheck'
|
if: github.repository == 'danmar/cppcheck'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: irc pull request
|
- name: irc pull request
|
||||||
uses: rectalogic/notify-irc@v1
|
uses: rectalogic/notify-irc@v1
|
||||||
|
|
|
@ -7,18 +7,12 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
strategy:
|
runs-on: ubuntu-20.04
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
fail-fast: false # not worthwhile...
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install missing software on ubuntu
|
- name: Install missing software on ubuntu
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install shellcheck
|
sudo apt-get install shellcheck
|
||||||
|
|
|
@ -7,12 +7,7 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
strategy:
|
runs-on: ubuntu-20.04
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
fail-fast: false # not worthwhile...
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -21,11 +16,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libz3-4 libz3-dev
|
sudo apt-get install libz3-4 libz3-dev
|
||||||
cp externals/z3_version_old.h externals/z3_version.h
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cp externals/z3_version_old.h externals/z3_version.h
|
|
||||||
CC=clang CXX=clang++ CXXFLAGS="-fsanitize=undefined -fsanitize=nullability -O1 -g3 -DCPPCHK_GLIBCXX_DEBUG" make cppcheck testrunner -j$(nproc) USE_Z3=yes HAVE_RULES=yes MATCHCOMPILER=yes
|
CC=clang CXX=clang++ CXXFLAGS="-fsanitize=undefined -fsanitize=nullability -O1 -g3 -DCPPCHK_GLIBCXX_DEBUG" make cppcheck testrunner -j$(nproc) USE_Z3=yes HAVE_RULES=yes MATCHCOMPILER=yes
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|
Loading…
Reference in New Issue