Skip to content

Commit

Permalink
CI: add meson CI
Browse files Browse the repository at this point in the history
tests old and new Clang/GCC on x64 and Alpine Linux on various platforms.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Apr 1, 2024
1 parent e6e2ead commit 44795ad
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: meson

on: [pull_request, push]

concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true

jobs:
Linux-GCC:
runs-on: ubuntu-20.04
strategy:
matrix:
cc: ['7', '13']
steps:
- uses: actions/checkout@v4
- uses: egor-tensin/setup-gcc@v1
with:
version: ${{matrix.cc}}
- name: Install Packages
run: |
python3 -m pip install meson ninja
sudo apt install -y libcap-ng-dev libnl-3-dev libnl-genl-3-dev libnuma-dev libsystemd-dev
- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3
meson compile -C "${{github.workspace}}/build"
meson test -C "${{github.workspace}}/build"
Linux-Clang:
runs-on: ubuntu-20.04
strategy:
matrix:
cc: ['6.0', '18']
steps:
- uses: actions/checkout@v4
- uses: egor-tensin/setup-clang@v1
with:
version: ${{matrix.cc}}
- name: Install Packages
run: |
python3 -m pip install meson ninja
sudo apt install -y libcap-ng-dev libnl-3-dev libnl-genl-3-dev libnuma-dev libsystemd-dev
- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
Alpine:
runs-on: ubuntu-20.04
strategy:
matrix:
platform: ['aarch64', 'armhf', 'armv7', 'ppc64le', 'riscv64', 's390x']
defaults:
run:
shell: alpine.sh {0}
steps:
- name: Get pushed code
uses: actions/checkout@v4

- uses: jirutka/setup-alpine@v1
with:
branch: edge
arch: ${{matrix.platform}}
packages: >
build-base glib-dev libcap-ng-dev libnl3-dev meson numactl-dev
- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" -Dwarning_level=3 -Dsystemd=disabled
meson compile -C "${{github.workspace}}/build"
meson test -C "${{github.workspace}}/build"

0 comments on commit 44795ad

Please sign in to comment.