-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (98 loc) · 3.23 KB
/
ubuntu.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
118
119
120
121
122
name: Ubuntu CI
on: [push, workflow_dispatch]
permissions:
contents: read
env:
UBSAN_OPTIONS: print_stacktrace=1
ASAN_OPTIONS: print_stats=1:atexit=1:detect_odr_violation=2
jobs:
ubuntu-cmake-gcc:
name: test-gcc-on-ubuntu-${{ matrix.ubuntu_version }}
runs-on: ubuntu-${{ matrix.ubuntu_version }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, 22.04, 24.04]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install gcc g++ build-essential cmake make libgmp-dev libmpfr-dev
- name: Install cppcheck
run: |
sudo apt update
sudo apt install cppcheck
- name: Run tests
run: |
cd ./tests && chmod +x run_gcc_tests.sh && ./run_gcc_tests.sh
ubuntu-cmake-clang:
name: test-clang-on-ubuntu-${{ matrix.ubuntu_version }}
runs-on: ubuntu-${{ matrix.ubuntu_version }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, 22.04, 24.04]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install clang llvm cmake make libgmp-dev libmpfr-dev
- name: Install cppcheck
run: |
sudo apt update
sudo apt install cppcheck
- name: Run tests
run: |
cd ./tests && chmod +x run_clang_tests.sh && ./run_clang_tests.sh
ubuntu-cmake-gcc-mingw-w64-i686-posix:
name: test-gcc-mingw-w64-i686-posix-on-ubuntu-${{ matrix.ubuntu_version }}
runs-on: ubuntu-${{ matrix.ubuntu_version }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [22.04, 24.04]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y \
gcc-mingw-w64 gcc-mingw-w64-i686 gcc-mingw-w64-i686-posix gcc-mingw-w64-i686-posix-runtime \
g++-mingw-w64 g++-mingw-w64-i686 g++-mingw-w64-i686-posix \
mingw-w64 mingw-w64-common mingw-w64-tools mingw-w64-i686-dev \
cmake make wine
- name: Install cppcheck
run: |
sudo apt update
sudo apt install cppcheck
- name: Run tests
run: |
cd ./tests && chmod +x run_gcc_mingw_32_tests.sh && ./run_gcc_mingw_32_tests.sh
ubuntu-cmake-gcc-mingw-w64-x86_64-posix:
name: test-gcc-mingw-w64-x86_64-posix-on-ubuntu-${{ matrix.ubuntu_version }}
runs-on: ubuntu-${{ matrix.ubuntu_version }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [22.04, 24.04]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y \
gcc-mingw-w64 gcc-mingw-w64-x86-64-posix gcc-mingw-w64-x86-64-posix-runtime \
g++-mingw-w64 g++-mingw-w64-x86-64-posix \
mingw-w64 mingw-w64-common mingw-w64-tools mingw-w64-x86-64-dev \
cmake make wine
- name: Install cppcheck
run: |
sudo apt update
sudo apt install cppcheck
- name: Run tests
run: |
cd ./tests && chmod +x run_gcc_mingw_64_tests.sh && ./run_gcc_mingw_64_tests.sh