2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-19 04:22:13 +00:00

Just use 'make check' to run tests on Github actions for every configuration

but Win+MSVC; the tests previously were not being run at all!
This commit is contained in:
Zach Laine
2024-09-29 13:44:04 -05:00
parent 4cea9c03d6
commit 6b0194d7d6
3 changed files with 13 additions and 24 deletions

View File

@@ -59,7 +59,7 @@ jobs:
;;
esac
dnf install -y cmake ninja-build git
dnf install -y cmake git
- name: Checkout
uses: actions/checkout@v4
@@ -77,16 +77,12 @@ jobs:
;;
esac
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DCMAKE_C_COMPILER="${CC}" \
-DCMAKE_CXX_COMPILER="${CXX}" \
-DCXX_STD=${{ matrix.cxx_std }}
mkdir build
cd build
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_C_COMPILER="${CC}" -DCMAKE_CXX_COMPILER="${CXX}" -DCXX_STD=${{ matrix.cxx_std }}
- name: Build
working-directory: build
run: cmake --build .
run: cd build ; make -j4
- name: Test
working-directory: build/test
run: ctest -C ${{ env.BUILD_TYPE }} -j $(nproc) --output-on-failure
run: cd build ; make check

View File

@@ -32,4 +32,4 @@ jobs:
- name: Test
working-directory: build
run: ctest -C ${{ env.BUILD_TYPE }} -j $(sysctl -n hw.ncpu) --output-on-failure
run: make check

View File

@@ -26,25 +26,18 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build
- uses: actions/checkout@v4
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DCMAKE_CXX_COMPILER=${{ matrix.compiler_version }} \
-DCXX_STD=${{ matrix.cxx_std }}
run: |
mkdir build
cd build
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler_version }} -DCXX_STD=${{ matrix.cxx_std }}
- name: Build
working-directory: build
run: cmake --build .
run: cd build ; make -j4
- name: Test
working-directory: build
run: ctest -C ${{ env.BUILD_TYPE }} -j $(nproc) --output-on-failure
run: cd build ; make check