Skip to content

Commit

Permalink
Adding github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
giulianobelinassi committed Feb 2, 2024
1 parent 0f545b4 commit b50b22a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/testsuite.yml
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

0 comments on commit b50b22a

Please sign in to comment.