-
Notifications
You must be signed in to change notification settings - Fork 28
83 lines (64 loc) · 1.83 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
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 autoconf automake
libtool make wine wine-binfmt mingw-w64-x86-64-dev mingw-w64-tools
gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64
- name: Run tests
run: >-
CONFIGURE_BUILD=x86_64-pc-linux
CONFIGURE_HOST=x86_64-w64-mingw32
CC=x86_64-w64-mingw32-gcc-win32
./ci/build.sh
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 autoconf automake libtool gettext make
mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-crt-git
mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-binutils
- name: Run tests
run: ./ci/build.sh
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 autoconf automake libtool gettext make
mingw-w64-i686-headers-git mingw-w64-i686-crt-git
mingw-w64-i686-gcc mingw-w64-i686-binutils
- name: Run tests
run: ./ci/build.sh