2024-09-10 02:10:48 +02:00
|
|
|
name: meson build and test
|
|
|
|
run-name: update pushed to ${{ github.ref }}
|
2024-09-10 03:35:36 +02:00
|
|
|
on: [check_run, push, pull_request]
|
2024-09-09 20:40:13 +02:00
|
|
|
|
|
|
|
jobs:
|
2024-09-10 04:06:30 +02:00
|
|
|
meson-publish:
|
2024-09-10 02:10:48 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
|
2024-09-09 20:40:13 +02:00
|
|
|
steps:
|
2024-09-10 02:10:48 +02:00
|
|
|
- name: checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: setup python
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
|
|
|
- name: meson build
|
|
|
|
uses: BSFishy/meson-build@v1.0.3
|
2024-09-09 20:40:13 +02:00
|
|
|
with:
|
2024-09-10 02:10:48 +02:00
|
|
|
meson-version: 1.5.1
|
|
|
|
ninja-version: 1.11.1.1
|
2024-09-09 20:40:13 +02:00
|
|
|
action: build
|
2024-09-10 02:10:48 +02:00
|
|
|
|
|
|
|
- name: meson test
|
|
|
|
uses: BSFishy/meson-build@v1.0.3
|
|
|
|
with:
|
|
|
|
meson-version: 1.5.1
|
|
|
|
ninja-version: 1.11.1.1
|
2024-09-09 20:40:13 +02:00
|
|
|
action: test
|
2024-09-10 03:29:28 +02:00
|
|
|
|
2024-09-10 04:06:30 +02:00
|
|
|
meson-coverage:
|
2024-09-10 03:29:28 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: setup python
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
|
|
|
- name: meson build
|
|
|
|
uses: BSFishy/meson-build@v1.0.3
|
|
|
|
with:
|
|
|
|
meson-version: 1.5.1
|
|
|
|
ninja-version: 1.11.1.1
|
|
|
|
setup-options: -Db_coverage=true
|
|
|
|
action: build
|
|
|
|
|
|
|
|
- name: meson test
|
|
|
|
uses: BSFishy/meson-build@v1.0.3
|
|
|
|
with:
|
|
|
|
meson-version: 1.5.1
|
|
|
|
ninja-version: 1.11.1.1
|
|
|
|
setup-options: -Db_coverage=true
|
|
|
|
action: test
|
|
|
|
|
|
|
|
- name: generate code coverage report
|
|
|
|
uses: threeal/gcovr-action@v1.0.0
|
|
|
|
with:
|
|
|
|
coveralls-send: true
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|