File tree 2 files changed +5
-16
lines changed
2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 18
18
pattern : [0, 1, 2, 3]
19
19
steps :
20
20
- uses : actions/checkout@v1
21
+ - name : install gtest
22
+ run : |
23
+ brew install --force googletest
21
24
- name : build and test
22
25
env :
23
26
CC : clang
48
51
export CHAR_SIGN="unsigned"
49
52
fi
50
53
51
- # install gtest
52
- wget https://github.com/google/googletest/archive/release-1.7.0.zip -O googletest-release-1.7.0.zip
53
- unzip -q googletest-release-1.7.0.zip
54
- cd googletest-release-1.7.0
55
- $CXX -m${ARCH} src/gtest-all.cc -I. -Iinclude -c
56
- $CXX -m${ARCH} src/gtest_main.cc -I. -Iinclude -c
57
- ar -rv libgtest.a gtest-all.o
58
- ar -rv libgtest_main.a gtest_main.o
59
- mkdir -p ${BASE}/usr/include
60
- cp -r include/gtest ${BASE}/usr/include
61
- mkdir -p ${BASE}/usr/lib
62
- mv *.a ${BASE}/usr/lib
63
- cd ..
64
-
65
54
# build and test
66
- CMAKE_CXX_COMPILER="${CXX}" CMAKE_C_COMPILER="${CC}" GTEST_ROOT="${BASE}/usr" CFLAGS="-Werror -g -fsanitize=undefined -fno-sanitize-recover=all" CXXFLAGS="-Werror -g -ggdb3 -fsanitize=undefined -fno-sanitize-recover=all" ${ACTION}
55
+ CMAKE_CXX_COMPILER="${CXX}" CMAKE_C_COMPILER="${CC}" CFLAGS="-Werror -g -fsanitize=undefined -fno-sanitize-recover=all" CXXFLAGS="-Werror -g -ggdb3 -fsanitize=undefined -fno-sanitize-recover=all" ${ACTION}
67
56
68
57
linux :
69
58
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 42
42
exit $ret
43
43
fi
44
44
45
- ctest -VVr
45
+ ctest -VV
46
46
47
47
ret=$?
48
48
if [ $ret -ne 0 ]
You can’t perform that action at this time.
0 commit comments