Skip to content

Commit 9a0ea24

Browse files
committed
enable Purify tests and examples in docs
1 parent 6372d63 commit 9a0ea24

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.github/workflows/documentation.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,29 @@ jobs:
2222
sudo apt update
2323
sudo apt install openmpi-bin libopenmpi-dev ccache casacore-dev doxygen graphviz libeigen3-dev libspdlog-dev libtiff-dev libcfitsio-dev libbenchmark-dev libboost-all-dev libyaml-cpp-dev
2424
wget --no-check-certificate --no-verbose http://www.fftw.org/fftw-3.3.10.tar.gz -O- | tar --no-same-owner -xz;
25-
cd fftw-3.3.10
26-
./configure --prefix=${{github.workspace}}/build --enable-shared
27-
make -j$(nproc --ignore 1) install CFLAGS=-fPIC
28-
# Fix bug in FFT3 (cf. https://github.com/FFTW/fftw3/issues/332)
29-
sed -i -e 's/^.*FFTW3LibraryDepends.cmake.*$//1' ${{github.workspace}}/build/lib*/cmake/*/FFTW3Config.cmake
30-
cd -
25+
26+
- name: Checkout Catch2
27+
uses: actions/checkout@v4
28+
with:
29+
repository: catchorg/Catch2.git
30+
path: Catch2
31+
ref: v3.4.0
32+
33+
- name: Build Catch2
34+
run: |
35+
mkdir Catch2/build
36+
cd Catch2/build
37+
cmake .. -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local
38+
make -j$(nproc --ignore 1) install
39+
40+
- name: Install FFTW
41+
run: |
42+
wget --no-check-certificate --no-verbose http://www.fftw.org/fftw-3.3.10.tar.gz -O- | tar --no-same-owner -xz;
43+
cd fftw-3.3.10
44+
./configure --prefix=${{github.workspace}}/local --enable-shared
45+
make -j$(nproc --ignore 1) install CFLAGS=-fPIC
46+
# Fix bug in FFT3 (cf. https://github.com/FFTW/fftw3/issues/332)
47+
sed -i -e 's/^.*FFTW3LibraryDepends.cmake.*$//1' ${{github.workspace}}/local/lib*/cmake/*/FFTW3Config.cmake
3148
3249
- name: Checkout SOPT
3350
uses: actions/checkout@v3
@@ -41,15 +58,15 @@ jobs:
4158
export CMAKE_PREFIX_PATH=${{github.workspace}}/build:$CMAKE_PREFIX_PATH
4259
mkdir sopt/build
4360
cd sopt/build
44-
cmake .. -DCMAKE_INSTALL_PREFIX=${PWD} -Ddocasa=OFF -Ddompi=OFF -Dopenmp=OFF -Ddocs=OFF -Dtests=OFF
61+
cmake .. -DCMAKE_INSTALL_PREFIX=${PWD} -Ddocasa=OFF -Ddompi=OFF -Dopenmp=OFF -Ddocs=OFF -Dtests=OFF -Dexamples=OFF
4562
make -j$(nproc --ignore 1) install
4663
4764
- name: Configure
4865
run: |
4966
export CMAKE_PREFIX_PATH=${{github.workspace}}/build:$CMAKE_PREFIX_PATH
5067
mkdir -p ${{github.workspace}}/build
5168
cd ${{github.workspace}}/build
52-
cmake .. -DCMAKE_INSTALL_PREFIX=${PWD} -Ddompi=OFF -Dopenmp=OFF -Ddocs=ON -Dtests=OFF
69+
cmake .. -DCMAKE_INSTALL_PREFIX=${PWD} -Ddompi=OFF -Dopenmp=OFF -Ddocs=ON
5370
5471
- name: Build
5572
run: |

0 commit comments

Comments
 (0)