chore(build): improve workflows (#150)

This commit is contained in:
fallenoak authored and GitHub committed 2025-12-27 12:52:27 -06:00
1 parent dcd2f7dc49
commit 8443ba863f
2 files changed
+41 -31

No files matched your search

+17 -14
View File
@@ -7,36 +7,39 @@ on:
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }}
runs-on: ${{ matrix.build.os }}
strategy:
fail-fast: false
matrix:
config:
- name: Ubuntu Latest (GCC)
os: ubuntu-latest
build:
- system_name: Linux
build_type: Release
compiler_name: GCC
test_path: WhoaTest
os: ubuntu-latest
cc: gcc
cxx: g++
- name: macOS Latest (Clang)
os: macos-latest
- system_name: macOS
build_type: Release
compiler_name: Clang
test_path: WhoaTest
os: macos-latest
cc: clang
cxx: clang++
- name: Windows Latest (MSVC)
os: windows-latest
- system_name: Windows
build_type: Release
compiler_name: MSVC
test_path: WhoaTest
os: windows-latest
cc: cl
cxx: cl
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
with:
submodules: recursive
@@ -55,17 +58,17 @@ jobs:
run: mkdir build
- name: Configure
run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build.build_type }}
working-directory: build
- name: Build
run: cmake --build . --config ${{ matrix.config.build_type }}
run: cmake --build . --config ${{ matrix.build.build_type }}
working-directory: build
- name: Install
run: cmake --install . --config ${{ matrix.config.build_type }}
run: cmake --install . --config ${{ matrix.build.build_type }}
working-directory: build
- name: Test
run: ../../build/dist/bin/${{ matrix.config.test_path }}
run: ../../build/dist/bin/${{ matrix.build.test_path }}
working-directory: test/fixture