Skip to content

Stick to Ubuntu 23.10 #347

Stick to Ubuntu 23.10

Stick to Ubuntu 23.10 #347

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: [13, 14, 15, 16, 17, 18]
build-type: [DEBUG]
include:
- llvm: 18
build-type: ASAN
- llvm: 18
build-type: UBSAN
- llmv: 18
build-type: RelWithDebInfo
extra-flags: -flto=auto
- llmv: 18
build-type: RelWithDebInfo
env: CC=clang CXX=clang++
fail-fast: false
container:
image: opensuse/tumbleweed
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
sudo wget python3-pip
- run: zypper -n install sqlite-devel python3
- run: pip install --break-system-packages pytest-cov
- uses: rui314/setup-mold@v1
- run: ld --version
- run: nproc
- uses: actions/checkout@v4
- 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: test
run: pytest
working-directory: objdir
ruff:
runs-on: ubuntu-latest
container:
image: opensuse/tumbleweed
steps:
- run: zypper -n install python3-pip
- uses: actions/checkout@v4
- run: pip install --break-system-packages ruff
- run: ruff check
- run: ruff format --diff