update math_functions, fibonacci_num.hpp and is_prime.hpp #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 make ninja-build cmake 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 clang-libs clang-tools-extra llvm make ninja-build cmake 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 |