Skip to content

Commit

Permalink
Add valgrind tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Sep 11, 2023
1 parent 955c176 commit a6dfe6c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,36 @@ jobs:
- name: primecount 1e14 --gourdon
run: ./primecount 1e14 --gourdon

linux_gcc_valgrind:
runs-on: ubuntu-latest
env:
CC: gcc
CXX: g++
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt update
sudo apt install valgrind
- name: Build primecount
run: |
cmake . -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Werror -g"
make -j2 VERBOSE=1
- name: primecount 1e11 --legendre
run: valgrind ./primecount 1e11 --legendre
- name: primecount 1e12 --meissel
run: valgrind ./primecount 1e12 --meissel
- name: primecount 1e11 --lehmer
run: valgrind ./primecount 1e11 --lehmer
- name: primecount 1e12 --lmo
run: valgrind ./primecount 1e12 --lmo
- name: primecount 1e13 --deleglise-rivat
run: valgrind ./primecount 1e13 --deleglise-rivat
- name: primecount 1e14 --gourdon
run: valgrind ./primecount 1e14 --gourdon
- name: primecount 1e14 --status
run: valgrind ./primecount 1e14 --status

linux_clang:
strategy:
matrix:
Expand Down

0 comments on commit a6dfe6c

Please sign in to comment.