From b50b22a5cd1f1b45e2c75da9bf629b228bf91001 Mon Sep 17 00:00:00 2001 From: Giuliano Belinassi Date: Fri, 2 Feb 2024 15:38:43 -0300 Subject: [PATCH] Adding github CI --- .github/workflows/testsuite.yml | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/testsuite.yml diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml new file mode 100644 index 0000000..2bbd895 --- /dev/null +++ b/.github/workflows/testsuite.yml @@ -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