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:
16
.github/workflows/fedora.yml
vendored
16
.github/workflows/fedora.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/macos-12.yml
vendored
2
.github/workflows/macos-12.yml
vendored
@@ -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
|
||||
|
||||
19
.github/workflows/ubuntu.yml
vendored
19
.github/workflows/ubuntu.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user