Skip to content

fix test

fix test #1504

name: amd64 CMake Glop C++
on: [push, pull_request, workflow_dispatch]
jobs:
docker:
name: Docker • CMake • Glop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build env image
run: make --directory=cmake glop_env
- name: Build devel image
run: make --directory=cmake glop_devel
- name: Build project
run: make --directory=cmake glop_build
- name: Test project
run: make --directory=cmake glop_test
- name: Build Install env image
run: make --directory=cmake glop_install_env
- name: Build Install devel image
run: make --directory=cmake glop_install_devel
- name: Build Install
run: make --directory=cmake glop_install_build
- name: Test Install
run: make --directory=cmake glop_install_test
# ref: https://github.com/actions/runner-images
native:
strategy:
matrix:
cmake: [
{
runner: "ubuntu-latest",
generator: "Unix Makefiles",
config: Release,
build_target: all,
test_target: test,
install_target: install
},
{
runner: "macos-13", # last macos intel based runner
generator: "Xcode",
config: Release,
build_target: ALL_BUILD,
test_target: RUN_TESTS,
install_target: install
},
{
runner: "macos-latest", # macos arm64 based runner
generator: "Xcode",
config: Release,
build_target: ALL_BUILD,
test_target: RUN_TESTS,
install_target: install
},
{
runner: "windows-latest",
generator: "Visual Studio 17 2022",
config: Release,
build_target: ALL_BUILD,
test_target: RUN_TESTS,
install_target: INSTALL
},
]
fail-fast: false
name: ${{ matrix.cmake.runner }} • CMake • Glop
runs-on: ${{ matrix.cmake.runner }}
steps:
- uses: actions/checkout@v4
- name: Check cmake
run: cmake --version
- name: Configure
run: >
cmake -S. -Bbuild
-G "${{ matrix.cmake.generator }}"
-DCMAKE_BUILD_TYPE=${{ matrix.cmake.config }}
-DBUILD_DEPS=ON
-DBUILD_CXX=OFF -DBUILD_GLOP=ON
-DCMAKE_INSTALL_PREFIX=install
- name: Build
run: >
cmake --build build
--config ${{ matrix.cmake.config }}
--target ${{ matrix.cmake.build_target }}
-v -j2
- name: Install
run: >
cmake --build build
--config ${{ matrix.cmake.config }}
--target ${{ matrix.cmake.install_target }}
-v