Skip to content

[Snyk] Security upgrade zipp from 3.15.0 to 3.19.1 #27

[Snyk] Security upgrade zipp from 3.15.0 to 3.19.1

[Snyk] Security upgrade zipp from 3.15.0 to 3.19.1 #27

Workflow file for this run

---
name: Linux Builds
on:
push:
pull_request:
release:
types: [published]
jobs:
ci:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: ubuntu-18.04-gcc-7
os: ubuntu-18.04
build_type: Release
compiler: g++-7
ccompiler: gcc-7
clang-tidy: ''
generators: Ninja
coverage: OFF
- name: ubuntu-18.04-gcc-9
os: ubuntu-18.04
build_type: Release
compiler: g++-9
ccompiler: gcc-9
clang-tidy: ''
generators: Ninja
coverage: OFF
- name: ubuntu-18.04-clang-9
os: ubuntu-18.04
build_type: Release
compiler: clang++-9
ccompiler: clang-9
clang-tidy: clang-tidy-9
generators: Ninja
coverage: OFF
- name: ubuntu-20.04-gcc-9
os: ubuntu-20.04
build_type: Release
compiler: g++-9
ccompiler: gcc-9
clang-tidy: clang-tidy
generators: Ninja
coverage: OFF
- name: ubuntu-20.04-gcc-10
os: ubuntu-20.04
build_type: Debug
compiler: g++-10
ccompiler: gcc-10
clang-tidy: clang-tidy
generators: Ninja
coverage: ON
- name: ubuntu-20.04-clang-10
os: ubuntu-20.04
build_type: Release
compiler: clang++-10
ccompiler: clang-10
clang-tidy: clang-tidy-10
generators: Ninja
coverage: OFF
- name: ubuntu-20.04-clang-11
os: ubuntu-20.04
build_type: Release
compiler: clang++-11
ccompiler: clang-11
clang-tidy: clang-tidy-11
generators: Ninja
coverage: OFF
- name: ubuntu-20.04-clang-12
os: ubuntu-20.04
build_type: Release
compiler: clang++-12
ccompiler: clang-12
clang-tidy: clang-tidy-12
generators: Ninja
coverage: OFF
- name: ubuntu-22.04-clang-12
os: ubuntu-22.04
build_type: Release
compiler: clang++-12
ccompiler: clang-12
clang-tidy: clang-tidy-12
generators: Ninja
coverage: OFF
- name: ubuntu-22.04-clang-13
os: ubuntu-22.04
build_type: Release
compiler: clang++-13
ccompiler: clang-13
clang-tidy: clang-tidy-13
generators: Ninja
coverage: OFF
- name: ubuntu-22.04-clang-14
os: ubuntu-22.04
build_type: Release
compiler: clang++-14
ccompiler: clang-14
clang-tidy: clang-tidy-14
generators: Ninja
coverage: OFF
- name: ubuntu-22.04-gcc-12
os: ubuntu-22.04
build_type: Debug
compiler: g++-12
ccompiler: gcc-12
clang-tidy: clang-tidy
generators: Ninja
coverage: OFF
env:
CXX: ${{ matrix.compiler }}
CC: ${{ matrix.ccompiler }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends ninja-build ${{ matrix.clang-tidy }} python3-pip python3-setuptools libqt5charts5-dev libglib2.0-dev
sudo apt-get install -y --no-install-recommends dpkg pkg-config doxygen lcov
- name: Python pip Cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-${{ matrix.name }}-${{ hashFiles('py-requirements.txt') }}
- name: Install python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r py-requirements.txt
- name: Conan Cache
uses: actions/cache@v2
with:
path: ~/.conan/data
key: conan-${{ matrix.name }}-${{ hashFiles('**/Conan.cmake') }}
- name: Set conan compiler env (gcc)
if: matrix.ccompiler == 'gcc'
run: |
conan profile new default --detect
conan profile update settings.compiler.libcxx=libstdc++11 default
- name: Create build dir
run: mkdir build
- name: CMake configure
run: cmake -S . -B ./build -G "${{ matrix.generators }}" -DENABLE_COVERAGE=${{ matrix.coverage }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type
}}
- name: CMake build
run: cmake --build ./build --config ${{ matrix.build_type }}
- name: CTest
run: ctest -C Debug
working-directory: ./build
- name: CMake build docs
run: cmake --build ./build --target docs --config ${{ matrix.build_type }}
- name: CMake build package
run: cmake --build ./build --target package --config ${{ matrix.build_type }}
- name: Coverage
if: matrix.coverage == 'ON'
run: |
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo 'Codecov did not collect coverage reports'
export CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }}
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.info || echo 'codacy did not collect coverage reports'
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.name }}-artifacts
path: |
./build/Coronan-*.deb
./build/Coronan-*.tar.gz