-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (41 loc) · 1.42 KB
/
windows-mingw.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Windows MinGW
on:
push:
pull_request:
jobs:
build-test-run-windows-mingw:
name: Build & Test & Run
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Install meson build system
run: python -m pip install meson
- name: Upgrade MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
- name: Configure build directory for shared library
run: meson setup builddir -Dtests=true -Dexamples=true -Ddefault_library=shared
- name: Compile project
run: meson compile -C builddir
- name: Run tests
run: meson test -C builddir
- name: Start example
run: |
$env:Path += ';.\builddir\lib'
.\builddir\examples\example.exe
- name: Start single header example
run: .\builddir\examples\example-single-header.exe
- name: Configure build directory for static library
run: meson configure builddir -Dtests=true -Dexamples=true -Ddefault_library=static
- name: Compile project
run: meson compile -C builddir
- name: Run tests
run: meson test -C builddir
- name: Start example
run: |
$env:Path += ';.\builddir\lib'
.\builddir\examples\example.exe
- name: Start single header example
run: .\builddir\examples\example-single-header.exe