-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f545b4
commit b50b22a
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Test Suite | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
CI: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
opensuse: [tumbleweed] | ||
compiler: [clang] | ||
|
||
include: | ||
- build-type: debug | ||
- build-type: release | ||
|
||
container: | ||
image: opensuse/${{ matrix.opensuse }} | ||
options: --privileged | ||
|
||
steps: | ||
- name: dependencies | ||
run: zypper -n install libelf-devel | ||
llvm16-libclang13 clang16-devel libclang-cpp16 | ||
clang-tools libLLVM16 llvm16 llvm16-devel meson ninja | ||
python311-psutil python311-pexpect python311-subprocess-tee | ||
python311-pytest gcc | ||
- uses: actions/checkout@v2 | ||
- name: meson | ||
run: meson setup build --buildtype=${{ matrix.build-type }} --native-file ce-native.ini | ||
- name: build | ||
run: meson compile -C build/ -v | ||
id: build | ||
- name: test | ||
run: meson test -C build/ -v | ||
id: check | ||
- name: diagnostics | ||
if: failure () && steps.check.outcome == 'failure' | ||
run: cat meson-logs/testlog.log | ||
- name: dist | ||
run: meson dist -C build/ -v |