Skip to content

Commit 0745d20

Browse files
committed
update workflow; removed gcovr
1 parent 54acda3 commit 0745d20

File tree

3 files changed

+24
-73
lines changed

3 files changed

+24
-73
lines changed

.github/workflows/test-linux.yml

+24-28
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
1-
name: Test / Linux / x86
1+
name: Linux x86_64 Test
22

33
on: [workflow_dispatch]
44

55
jobs:
6-
build:
6+
build-and-test:
77
runs-on: ubuntu-latest
8-
98
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 ..
1225
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

CMakeLists.txt

-14
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,6 @@ set(LIBMEM_DEPS
8989
llvm
9090
)
9191

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-
10692
if (LIBMEM_BUILD_STATIC)
10793
add_library(libmem STATIC ${LIBMEM_SRC})
10894
else()

tools/unit_test.sh

-31
This file was deleted.

0 commit comments

Comments
 (0)