Skip to content

Commit 6302be2

Browse files
committed
Prefer setting up google-test on github actions CI manually due to https://github.com/itzmeanjan/ml-kem/actions/runs/13701500559
Signed-off-by: Anjan Roy <[email protected]>
1 parent 71e059d commit 6302be2

File tree

1 file changed

+16
-30
lines changed

1 file changed

+16
-30
lines changed

.github/workflows/test_ci.yml

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,44 +20,30 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23-
- name: Setup Google Test
24-
uses: Bacondish2023/setup-googletest@v1
25-
with:
26-
tag: v1.15.2
27-
23+
- name: Setup Google-Test
24+
run: |
25+
pushd ~
26+
git clone https://github.com/google/googletest.git -b v1.16.0
27+
pushd googletest
28+
mkdir build
29+
pushd build
30+
cmake .. -DBUILD_GMOCK=OFF
31+
make
32+
sudo make install
33+
popd
34+
popd
35+
popd
2836
2937
- name: Build and Test (${{ matrix.compiler }}, ${{ matrix.build_type }}, ${{ matrix.test_type }})
3038
run: |
3139
CXX=${{ matrix.compiler }}
3240
if [[ ${{ matrix.test_type }} == "standard" ]]; then
33-
make test -j 2>&1 | tee build.log
41+
make test -j
3442
else
35-
make ${{ matrix.build_type }}_${{ matrix.test_type }}_test -j 2>&1 | tee build.log
43+
make ${{ matrix.build_type }}_${{ matrix.test_type }}_test -j
3644
fi
37-
if [ $? -ne 0 ]; then
38-
echo "Build or Test Failed! See build.log for details."
39-
exit 1
40-
fi
41-
42-
- name: Upload Build Log
43-
uses: actions/upload-artifact@v3
44-
with:
45-
name: build-log-${{ matrix.compiler }}-${{ matrix.build_type }}-${{ matrix.test_type }}
46-
path: build.log
47-
4845
4946
- name: Run Examples
5047
if: ${{ matrix.test_type == 'standard' && matrix.build_type == 'release' }}
5148
run: |
52-
CXX=${{ matrix.compiler }} make example -j 2>&1 | tee example.log
53-
if [ $? -ne 0 ]; then
54-
echo "Example execution Failed! See example.log for details."
55-
exit 1
56-
fi
57-
58-
- name: Upload Example Log (if failed)
59-
if: ${{ steps.Run_Examples.outcome != 'success' && matrix.test_type == 'standard' && matrix.build_type == 'release' }}
60-
uses: actions/upload-artifact@v3
61-
with:
62-
name: example-log-${{ matrix.compiler }}
63-
path: example.log
49+
CXX=${{ matrix.compiler }} make example -j

0 commit comments

Comments
 (0)