@@ -20,44 +20,30 @@ jobs:
20
20
steps :
21
21
- uses : actions/checkout@v4
22
22
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
28
36
29
37
- name : Build and Test (${{ matrix.compiler }}, ${{ matrix.build_type }}, ${{ matrix.test_type }})
30
38
run : |
31
39
CXX=${{ matrix.compiler }}
32
40
if [[ ${{ matrix.test_type }} == "standard" ]]; then
33
- make test -j 2>&1 | tee build.log
41
+ make test -j
34
42
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
36
44
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
-
48
45
49
46
- name : Run Examples
50
47
if : ${{ matrix.test_type == 'standard' && matrix.build_type == 'release' }}
51
48
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