rtengine/.gitea/workflows/ci_meson.yaml
2024-07-15 16:53:25 +02:00

50 lines
1.4 KiB
YAML

name: CI Meson
on:
push:
paths:
- "**.c"
- "**.cpp"
- "**.h"
- "**.hpp"
pull_request:
paths:
- "**.c"
- "**.cpp"
- "**.h"
- "**.hpp"
jobs:
build:
name: Build on ${{ matrix.os }} with Meson v${{ matrix.meson_version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
meson_version: ["1.4.0"]
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
github-server-url: 'https://libneat.hopto.org/git/'
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Dependencies
run: python -m pip install meson==${{ matrix.meson_version }} ninja
- name: Configure Project
run: meson setup build
env:
CC: gcc
- name: Compile
run: meson compile -C build
- name: Run Tests
run: meson test -C build/ -v
- name: Upload Test Log
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ matrix.os }}_Meson_Testlog
path: build/meson-logs/testlog.txt