Skip to content

Commit

Permalink
ci: rework glop job
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 13, 2023
1 parent 4870c31 commit 80e30db
Showing 1 changed file with 73 additions and 55 deletions.
128 changes: 73 additions & 55 deletions .github/workflows/amd64_cmake_glop_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,64 +2,82 @@ name: amd64 CMake Glop C++

on: [push, pull_request, workflow_dispatch]

# Building using the github runner environement directly.
jobs:
docker:
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
- 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

linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_CXX=OFF -DBUILD_GLOP=ON
- name: Build
run: cmake --build build --config Release --target all -v
- name: Install
run: cmake --build build --config Release --target install -v -- DESTDIR=install

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_CXX=OFF -DBUILD_GLOP=ON
- name: Build
run: cmake --build build --target all -v
- name: Install
run: cmake --build build --target install -v -- DESTDIR=install

windows:
runs-on: windows-latest
# 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-latest",
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 "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_CXX=OFF -DBUILD_GLOP=ON
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -- /maxcpucount
- name: Install
run: cmake --build build --config Release --target INSTALL -- /maxcpucount
- 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 -j
- name: Install
run: >
cmake --build build
--config ${{ matrix.cmake.config }}
--target ${{ matrix.cmake.install_target }}
-v -j

0 comments on commit 80e30db

Please sign in to comment.