| 1 |
name: Test Suite |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ main ] |
| 6 |
pull_request: |
| 7 |
branches: [ main ] |
| 8 |
|
| 9 |
jobs: |
| 10 |
CI: |
| 11 |
runs-on: ubuntu-latest |
| 12 |
|
| 13 |
strategy: |
| 14 |
matrix: |
| 15 |
opensuse: [tumbleweed] |
| 16 |
compiler: [clang] |
| 17 |
build-type: [debug, release] |
| 18 |
version: [18, 19, 20, 21] |
| 19 |
|
| 20 |
container: |
| 21 |
image: opensuse/${{ matrix.opensuse }} |
| 22 |
options: --privileged |
| 23 |
|
| 24 |
steps: |
| 25 |
- name: dependencies |
| 26 |
run: zypper -n install |
| 27 |
libclang-cpp${{ matrix.version }} |
| 28 |
clang${{ matrix.version }}-devel |
| 29 |
libLLVM${{ matrix.version }} |
| 30 |
llvm${{ matrix.version }} |
| 31 |
llvm${{ matrix.version }}-devel |
| 32 |
meson ninja clang-tools gcc findutils bash libelf-devel zlib-devel libzstd-devel |
| 33 |
- uses: actions/checkout@v2 |
| 34 |
- name: meson |
| 35 |
run: meson setup build --buildtype=${{ matrix.build-type }} --native-file ce-native.ini |
| 36 |
- name: build |
| 37 |
run: meson compile -C build/ -v |
| 38 |
id: build |
| 39 |
- name: test |
| 40 |
run: meson test -C build/ -v |
| 41 |
id: check |
| 42 |
- name: diagnostics |
| 43 |
if: failure () && steps.check.outcome == 'failure' |
| 44 |
run: cat build/meson-logs/testlog.log |