-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
126 additions
and
72 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Fedora | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
fedora-cmake-gcc: | ||
name: fedora | ||
runs-on: ubuntu-latest | ||
container: | ||
image: fedora:latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: cat /etc/os-release | ||
- name: Install dependencies | ||
run: | | ||
sudo dnf -y update | ||
sudo dnf -y install gcc-c++ cmake make gmp gmp-devel gmp-c++ gmp-devel gmp-static mpfr-devel | ||
sudo dnf upgrade | ||
- name: Run tests | ||
run: | | ||
cd ./number_theory | ||
chmod +x ./run_gcc_tests.sh | ||
./run_gcc_tests.sh | ||
fedora-cmake-clang: | ||
name: fedora | ||
runs-on: ubuntu-latest | ||
container: | ||
image: fedora:latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: cat /etc/os-release | ||
- name: Install dependencies | ||
run: | | ||
sudo dnf -y update | ||
sudo dnf -y install clang cmake make gmp gmp-devel gmp-c++ gmp-devel gmp-static mpfr-devel | ||
sudo dnf upgrade | ||
- name: Run tests | ||
run: | | ||
cd ./number_theory | ||
chmod +x ./run_clang_tests.sh | ||
./run_clang_tests.sh |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Ubuntu | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
ubuntu-cmake-gcc: | ||
name: ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install g++ build-essential cmake make libgmp-dev libmpfr-dev | ||
sudo apt upgrade | ||
- name: Run tests | ||
run: | | ||
cd ./number_theory | ||
chmod +x ./run_gcc_tests.sh | ||
./run_gcc_tests.sh | ||
ubuntu-cmake-clang: | ||
name: ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install clang llvm cmake make libgmp-dev libmpfr-dev | ||
- name: Run tests | ||
run: | | ||
cd ./number_theory | ||
chmod +x ./run_clang_tests.sh | ||
./run_clang_tests.sh |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /bin/sh | ||
|
||
mkdir -p build_tests | ||
cp ./u64-primes.txt ./build_tests/u64-primes.txt | ||
cp ./u128-primes.txt ./build_tests/u128-primes.txt | ||
cd ./build_tests || return 1 | ||
|
||
export CC=/usr/bin/clang | ||
export CXX=/usr/bin/clang++ | ||
|
||
cmake -D CMAKE_BUILD_TYPE=Release -S .. -B . && make all --jobs "$(nproc)" && make test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /bin/sh | ||
|
||
mkdir -p build_tests | ||
cp ./u64-primes.txt ./build_tests/u64-primes.txt | ||
cp ./u128-primes.txt ./build_tests/u128-primes.txt | ||
cd ./build_tests || return 1 | ||
|
||
export CC=/usr/bin/gcc | ||
export CXX=/usr/bin/g++ | ||
|
||
cmake -D CMAKE_BUILD_TYPE=Release -S .. -B . && make all --jobs "$(nproc)" && make test |
This file was deleted.
Oops, something went wrong.
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
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