-
Notifications
You must be signed in to change notification settings - Fork 92
117 lines (110 loc) · 3.19 KB
/
run-tests.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: tests
on:
push:
pull_request:
jobs:
tests_on_alpine:
name: Tests on Alpine (x86_64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: x86_64 tests on Alpine
run: |
docker build -f .ci/Dockerfile-alpine-test -t funchook-test .
docker run --rm funchook-test
tests_on_intel_macos:
name: Tests on macOS (x86_64)
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: x86_64 tests on macOS
run: |
./.ci/run-cmake-test.sh x86_64-darwin
tests_on_m1_macos:
name: Tests on macOS (M1)
continue-on-error: true
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: arm64 tests on macOS
run: |
./.ci/run-cmake-test.sh arm64-darwin
tests_on_ubuntu_arm64:
name: Tests on Ubuntu (aarch64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: uraimo/run-on-arch-action@v2
name: aarch64 tests on Ubuntu
id: run_tests
with:
arch: aarch64
distro: ubuntu20.04
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -q -y cmake git g++
run: |
./.ci/run-cmake-test.sh aarch64-linux
tests_on_ubuntu_x86_64:
name: Tests on Ubuntu (x86_64 and i686)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib
- name: x86_64 tests on Ubuntu
run: |
./.ci/run-cmake-test.sh x86_64-linux
- name: i686 tests on Ubuntu
run: |
./.ci/run-cmake-test.sh i686-linux -DCMAKE_C_FLAGS=-m32 -DCMAKE_ASM_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32
tests_on_windows:
name: Tests on Windows (x64 and x86)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: x64 tests on Windows
shell: bash
run: |
./.ci/run-cmake-test.sh x86_64-windows -A x64
- name: x86 tests on Windows
shell: bash
run: |
./.ci/run-cmake-test.sh x86-windows -A Win32
tests_on_wine:
name: Tests on Wine (x64 and x86)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y g++-mingw-w64-x86-64 g++-mingw-w64-i686 wine64 wine-binfmt
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y libgcc-s1:i386 libstdc++6:i386 wine32
sudo apt-get remove mono-runtime
echo WINEPATH=$(ls -d /usr/lib/gcc/*-mingw*/*-win32 | tr '\n' ';') >> $GITHUB_ENV
- name: x64 tests on Wine
run: |
./.ci/run-cmake-test.sh x86_64-mingw32 -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-w64-mingw32.cmake
- name: x86 tests on Wine
run: |
./.ci/run-cmake-test.sh i686-mingw32 -DCMAKE_TOOLCHAIN_FILE=../cmake/i686-w64-mingw32.cmake