-
Notifications
You must be signed in to change notification settings - Fork 162
112 lines (91 loc) · 2.62 KB
/
Copy pathmake.yml
File metadata and controls
112 lines (91 loc) · 2.62 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: make
on:
pull_request:
branches: [ dev ]
push:
jobs:
make-test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: clangtest
run: make clangtest
- name: test
run: make test
- name: sanitize
run: make sanitize
- name: max13test
run: make max13test
make-test-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
run: |
sudo apt-get update -qq
sudo apt-get install -qq clang
sudo apt-get install -qq g++-multilib
sudo apt-get install -qq gcc-multilib
sudo apt-get install -qq valgrind
sudo apt-get install -qq make
sudo apt-get install -qq gcc-arm-linux-gnueabi
- name: clangtest
run: make clangtest
- name: armtest
run: make armtest
- name: gpptest
run: make gpptest
- name: test
run: make test
- name: sanitize
run: make sanitize
- name: max13test
run: make max13test
make-test-windows:
runs-on: windows-latest
strategy:
fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix failed.
matrix:
include: [
{ compiler: gcc, cpp_compiler: g++, msystem: MINGW64 },
{ compiler: clang, cpp_compiler: clang++, msystem: MINGW64 },
]
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # tag=v2.22.0
with:
msystem: ${{ matrix.msystem }}
install: make diffutils
update: true
# Based on https://ariya.io/2020/07/on-github-actions-with-msys2
- name: install mingw gcc x86_64
if: ${{ (matrix.compiler == 'gcc') }}
run: pacman --noconfirm -S mingw-w64-x86_64-gcc
- name: install mingw clang x86_64
if: ${{ (matrix.compiler == 'clang') }}
run: pacman --noconfirm -S mingw-w64-x86_64-clang
- name: clangtest
if: ${{ (matrix.compiler == 'clang') }}
run: |
export CC=${{ matrix.compiler }}
export CXX=${{ matrix.cpp_compiler }}
make clangtest
- name: gpptest
if: ${{ (matrix.compiler == 'gcc') }}
run: |
export CC=${{ matrix.compiler }}
export CXX=${{ matrix.cpp_compiler }}
make gpptest
- name: test
run: |
export CC=${{ matrix.compiler }}
export CXX=${{ matrix.cpp_compiler }}
make test
- name: max13test
run: |
export CC=${{ matrix.compiler }}
export CXX=${{ matrix.cpp_compiler }}
make max13test