-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (49 loc) · 1.48 KB
/
fedora.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
name: Fedora 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:
fedora-cmake-gcc:
name: test-fedora-gcc
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- uses: actions/checkout@v4
- run: cat /etc/os-release
- name: Install dependencies
run: |
sudo dnf -y update
sudo dnf -y install gcc gcc-c++ libasan libasan-static libubsan libubsan-static cmake make gmp gmp-devel gmp-c++ gmp-devel gmp-static mpfr-devel
sudo dnf upgrade
- name: Install cppcheck
run: |
sudo dnf -y update
sudo dnf -y install cppcheck
- name: Run tests
run: |
cd ./tests
chmod +x run_gcc_tests.sh && ./run_gcc_tests.sh
fedora-cmake-clang:
name: test-fedora-clang
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- uses: actions/checkout@v4
- run: cat /etc/os-release
- name: Install dependencies
run: |
sudo dnf -y update
sudo dnf -y install gcc libasan libasan-static libubsan libubsan-static clang llvm cmake make gmp gmp-devel gmp-c++ gmp-devel gmp-static mpfr-devel
sudo dnf upgrade
- name: Install cppcheck
run: |
sudo dnf -y update
sudo dnf -y install cppcheck
- name: Run tests
run: |
cd ./tests && chmod +x run_clang_tests.sh && ./run_clang_tests.sh