hmm #1
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
name: Meson CI | |
on: | |
push: | |
paths: | |
- "**.cpp" | |
- "**.h" | |
- "**/meson.build" | |
pull_request: | |
paths: | |
- "**.cpp" | |
- "**.h" | |
- "**/meson.build" | |
jobs: | |
build: | |
name: Build and Test on ${{ matrix.os }} with Meson v${{ matrix.meson_version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
meson_version: ["1.4.0"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Install Meson | |
run: python -m pip install meson==${{ matrix.meson_version }} ninja | |
- name: Configure project | |
run: meson setup builddir/ | |
env: | |
CC: gcc | |
- name: Run Tests | |
run: meson test -C builddir/ -v | |
- name: Upload Test Log | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ${{ matrix.os }}_Meson_Testlog | |
path: builddir/meson-logs/testlog.txt |