update tests #10
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: Linux | |
on: [push, pull_request, workflow_dispatch] | |
permissions: | |
contents: read | |
jobs: | |
ubuntu-cmake: | |
name: ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install g++ build-essential cmake make ninja-build libgmp-dev libmpfr-dev | |
sudo apt-get upgrade | |
- name: Run tests | |
run: | | |
cd ./number_theory | |
chmod +x ./run_tests.sh | |
./run_tests.sh | |
fedora-cmake: | |
name: fedora | |
runs-on: ubuntu-latest | |
container: | |
image: fedora:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cat /etc/os-release | |
- name: Install dependencies | |
run: | | |
dnf -y update | |
dnf -y install gcc-c++ cmake make ninja-build gmp gmp-devel gmp-c++ gmp-devel gmp-static mpfr-devel | |
- name: Run tests | |
run: | | |
cd ./number_theory | |
chmod +x ./run_tests.sh | |
./run_tests.sh |