-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests old and new Clang/GCC on x64 and Alpine Linux on various platforms. Signed-off-by: Rosen Penev <[email protected]>
- Loading branch information
Showing
1 changed file
with
70 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,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" |