Skip to content

Add build to ignored list of folders. #275

Add build to ignored list of folders.

Add build to ignored list of folders. #275

Workflow file for this run

name: Build openSUSE
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
llvm: [12, 13, 14, 15, 16]
build-type: [DEBUG]
docker: [opensuse/tumbleweed]
include:
- llvm: 16
build-type: ASAN
docker: opensuse/tumbleweed
- llvm: 16
build-type: UBSAN
docker: opensuse/tumbleweed
- llmv: 16
build-type: RelWithDebInfo
extra-flags: -flto=auto
docker: opensuse/tumbleweed
- llmv: 16
build-type: RelWithDebInfo
docker: opensuse/tumbleweed
env: CC=clang CXX=clang++
- llvm: 9
build-type: DEBUG
docker: opensuse/leap
env: CC=gcc-11 CXX=g++-11
fail-fast: false
container:
image: ${{ matrix.docker }}
steps:
- run: zypper -n install
binutils clang${{ matrix.llvm }}-devel cmake flex gcc-c++ llvm${{ matrix.llvm }}-devel
python3-Pebble python3-pytest unifdef python3-psutil curl git python3-chardet findutils
python3-flake8
python3-flake8-builtins
python3-flake8-bugbear
python3-flake8-import-order
python3-flake8-quotes
python3-pip
- run: zypper -n install gcc11-c++
if: matrix.docker == 'opensuse/leap'
- run: zypper -n install python3-flake8-comprehensions sqlite-devel python3
if: matrix.docker == 'opensuse/tumbleweed'
- run: pip install pytest-cov
if: matrix.docker == 'opensuse/tumbleweed'
- uses: actions/checkout@v3
- run: nproc
- name: build
run: |
mkdir objdir
cd objdir
${{ matrix.env }} cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DCMAKE_CXX_FLAGS=${{ matrix.extra-flags }}
make -j`nproc` VERBOSE=1
- name: flake8
run: flake8
- run: pip install pyupgrade
- run: find . -name '*.py' | xargs pyupgrade --py36-plus
- name: test
run: pytest
working-directory: objdir