File tree 3 files changed +24
-73
lines changed
3 files changed +24
-73
lines changed Original file line number Diff line number Diff line change 1
- name : Test / Linux / x86
1
+ name : Linux x86_64 Test
2
2
3
3
on : [workflow_dispatch]
4
4
5
5
jobs :
6
- build :
6
+ build-and-test :
7
7
runs-on : ubuntu-latest
8
-
9
8
steps :
10
- - name : Checkout Repository Job
11
- uses : actions/checkout@v2
9
+ - name : Checkout Repository
10
+ uses : actions/checkout@v4
11
+ with :
12
+ submodules : ' recursive'
13
+
14
+ - name : Install Dependencies
15
+ run : |
16
+ sudo apt-get -y install cmake make gcc-multilib g++-multilib python3
17
+
18
+ - name : Configure and Build
19
+ run : |
20
+ mkdir build
21
+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DLIBMEM_BUILD_TESTS=ON -DLIBMEM_BUILD_STATIC=ON
22
+ cd build
23
+ make -j 4
24
+ cd ..
12
25
13
- - name : Install Dependencies Job
14
- run : |
15
- sudo apt-get update
16
- sudo apt-get install -y gcovr
17
- sudo chmod +x tools/unit_test.sh
18
- git submodule update --init --recursive
19
-
20
- - name : Configure and Build Job
21
- run : |
22
- cmake -S . -B build -DLIBMEM_BUILD_TESTS=ON -DLIBMEM_DEEP_TESTS=ON
23
- cmake --build build
24
-
25
- - name : Run Unit Tests Job
26
- run : |
27
- sudo tools/unit_test.sh
28
-
29
- - name : Archive Artifacts Job
30
- uses : actions/upload-artifact@v2
31
- with :
32
- name : libmem-artifacts
33
- path : |
34
- build/
35
-
26
+ - name : Run Unit Tests
27
+ run : |
28
+ echo "Starting target..."
29
+ ./build/tests/target &
30
+ echo "Starting unit tests..."
31
+ sudo ./build/tests/unit
Original file line number Diff line number Diff line change @@ -89,20 +89,6 @@ set(LIBMEM_DEPS
89
89
llvm
90
90
)
91
91
92
- if ("${CMAKE_BUILD_TYPE} " STREQUAL "Debug" AND ${LIBMEM_DEEP_TESTS} )
93
- if (NOT MSVC )
94
- add_compile_options (-Wall
95
- -Wextra
96
- -Wpedantic
97
- -g
98
- -ggdb
99
- -O0
100
- -fprofile-arcs
101
- -ftest-coverage
102
- )
103
- endif ()
104
- endif ()
105
-
106
92
if (LIBMEM_BUILD_STATIC)
107
93
add_library (libmem STATIC ${LIBMEM_SRC} )
108
94
else ()
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments