-
Notifications
You must be signed in to change notification settings - Fork 29
88 lines (68 loc) · 1.86 KB
/
c-cpp.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: C/C++ CI
on:
push:
branches:
- master
- releases/*
pull_request:
branches:
- master
jobs:
ubuntu-x86-64:
name: Ubuntu cross build (x86-64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Remove mono runtime
run: sudo apt-get purge mono-runtime
- name: Install dependencies
run: >-
sudo apt-get install -y --no-install-recommends
mingw-w64-{x86-64-dev,tools} {gcc,g++,binutils}-mingw-w64-x86-64
ninja-build python3-pip
- name: Install newest meson
run: >-
sudo pip3 install meson # --break-system-packages
- name: Run tests
run: >-
meson setup --cross-file meson.cross.x86_64-w64-mingw32
-Denable-debug-checks=true build_ci
meson test -Cbuild_ci
msys2-ucrt64:
name: MSYS2 native build (x86-64)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
- name: Install dependencies
run: >-
pacman -S --noconfirm
mingw-w64-ucrt-x86_64-{{headers,crt,tools}-git,gcc,binutils,meson}
- name: Run tests
run: >-
meson setup -Denable-debug-checks=true build_ci
meson test -Cbuild_ci
msys2-mingw32:
name: MSYS2 native build (i686)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
- name: Install dependencies
run: >-
pacman -S --noconfirm
mingw-w64-i686-{{headers,crt,tools}-git,gcc,binutils,meson}
- name: Run tests
run: >-
meson setup -Denable-debug-checks=true build_ci
meson test -Cbuild_ci