Skip to content

Commit

Permalink
update workflow; removed gcovr
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbo committed Apr 21, 2024
1 parent 54acda3 commit 0745d20
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 73 deletions.
52 changes: 24 additions & 28 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
name: Test / Linux / x86
name: Linux x86_64 Test

on: [workflow_dispatch]

jobs:
build:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository Job
uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install Dependencies
run: |
sudo apt-get -y install cmake make gcc-multilib g++-multilib python3
- name: Configure and Build
run: |
mkdir build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DLIBMEM_BUILD_TESTS=ON -DLIBMEM_BUILD_STATIC=ON
cd build
make -j 4
cd ..
- name: Install Dependencies Job
run: |
sudo apt-get update
sudo apt-get install -y gcovr
sudo chmod +x tools/unit_test.sh
git submodule update --init --recursive
- name: Configure and Build Job
run: |
cmake -S . -B build -DLIBMEM_BUILD_TESTS=ON -DLIBMEM_DEEP_TESTS=ON
cmake --build build
- name: Run Unit Tests Job
run: |
sudo tools/unit_test.sh
- name: Archive Artifacts Job
uses: actions/upload-artifact@v2
with:
name: libmem-artifacts
path: |
build/
- name: Run Unit Tests
run: |
echo "Starting target..."
./build/tests/target &
echo "Starting unit tests..."
sudo ./build/tests/unit
14 changes: 0 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,6 @@ set(LIBMEM_DEPS
llvm
)

if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" AND ${LIBMEM_DEEP_TESTS})
if(NOT MSVC)
add_compile_options(-Wall
-Wextra
-Wpedantic
-g
-ggdb
-O0
-fprofile-arcs
-ftest-coverage
)
endif()
endif()

if (LIBMEM_BUILD_STATIC)
add_library(libmem STATIC ${LIBMEM_SRC})
else()
Expand Down
31 changes: 0 additions & 31 deletions tools/unit_test.sh

This file was deleted.

0 comments on commit 0745d20

Please sign in to comment.