-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 875 Bytes
/
joao.yml
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
name: Joao Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build (${{ matrix.os[1] }})
runs-on: ${{ matrix.os[0] }}
strategy:
matrix:
os: [[windows-latest, windows, joao.exe], [ubuntu-latest, linux, joao]]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.x'
- uses: ilammy/msvc-dev-cmd@v1
- name: Install Meson + Ninja
run: pip install meson ninja
- name: Setup Meson
run: meson setup builddir/ --buildtype release
- name: Compile
run: meson compile -C builddir/ -v
- name: Run Tests
run: meson test -C builddir/ -v
- name: Upload Build Result
uses: actions/upload-artifact@v2
with:
name: joao-${{ matrix.os[1] }}
path: builddir/${{ matrix.os[2] }}