-
Notifications
You must be signed in to change notification settings - Fork 166
60 lines (57 loc) · 1.57 KB
/
ci-meson.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI Meson
# triggering events
on:
# allow manual run of the flow, from browser on repo
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
push:
branches:
- "resynthesizer3"
paths:
- "**.c"
- "**.h"
pull_request:
paths:
- "**.c"
- "**.h"
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.2.0", "1.3.0", "1.4.0"]
steps:
- name: Checkout source code from repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install tools: meson and ninja
run: python -m pip install meson==${{ matrix.meson_version }} ninja
- name: Create a build dir and tell meson configure it from meson.build in source
# ? Formerly a trailing / , for what reason?
run: meson setup builddir
env:
CC: gcc
- name: Compile
run: meson compile -C builddir -v
- 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