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 ed6234e
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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: cd build
- name: ninja
run: ninja
id: ninja
- name: ninja test
run: ninja test
id: check
- name: diagnostics
if: failure () && steps.check.outcome == 'failure'
run: cat meson-logs/testlog.log
- name: distribution
run: ninja dist

0 comments on commit ed6234e

Please sign in to comment.