chore(build): improve workflows

This commit is contained in:
fallenoak 2025-12-27 13:21:40 -06:00
parent 511c40aaa4
commit 35f995692a
2 changed files with 56 additions and 56 deletions

View file

@ -4,51 +4,51 @@ on: pull_request
jobs: jobs:
build: build:
name: ${{ matrix.flavor.name }} / ${{ matrix.build.os_name }} (${{ matrix.build.compiler_name }}) name: ${{ matrix.flavor.name }} / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }}
runs-on: ${{ matrix.build.os }} runs-on: ${{ matrix.build.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
build:
- os_name: Ubuntu Latest
compiler_name: GCC
os: ubuntu-latest
build_type: Debug
test_path: StormTest
cc: gcc
cxx: g++
- os_name: macOS Latest
compiler_name: Clang
os: macos-latest
build_type: Debug
test_path: StormTest
cc: clang
cxx: clang++
- os_name: Windows Latest
compiler_name: MSVC
os: windows-latest
build_type: Debug
test_path: Debug/StormTest
cc: cl
cxx: cl
flavor: flavor:
- name: WoW - name: WoW
define: WOW define: WOW
- name: SC1 - name: SC1
define: SC1 define: SC1
build:
- system_name: Linux
build_type: Debug
compiler_name: GCC
test_path: StormTest
os: ubuntu-latest
cc: gcc
cxx: g++
- system_name: macOS
build_type: Debug
compiler_name: Clang
test_path: StormTest
os: macos-latest
cc: clang
cxx: clang++
- system_name: Windows
build_type: Debug
compiler_name: MSVC
test_path: Debug/StormTest
os: windows-latest
cc: cl
cxx: cl
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v6
with: with:
submodules: true submodules: true
- name: Install Dependencies (Ubuntu) - name: Install Dependencies (${{ matrix.build.os }})
run: sudo apt install -y lcov run: sudo apt install -y lcov
if: matrix.build.os_name == 'Ubuntu Latest' if: matrix.build.os == 'ubuntu-latest'
- name: Prepare - name: Prepare
run: mkdir build run: mkdir build

View file

@ -7,45 +7,45 @@ on:
jobs: jobs:
build: build:
name: ${{ matrix.flavor.name }} / ${{ matrix.build.os_name }} (${{ matrix.build.compiler_name }}) name: ${{ matrix.flavor.name }} / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }}
runs-on: ${{ matrix.build.os }} runs-on: ${{ matrix.build.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
build:
- os_name: Ubuntu Latest
compiler_name: GCC
os: ubuntu-latest
build_type: Release
test_path: StormTest
cc: gcc
cxx: g++
- os_name: macOS Latest
compiler_name: Clang
os: macos-latest
build_type: Release
test_path: StormTest
cc: clang
cxx: clang++
- os_name: Windows Latest
compiler_name: MSVC
os: windows-latest
build_type: Release
test_path: Release/StormTest
cc: cl
cxx: cl
flavor: flavor:
- name: WoW - name: WoW
define: WOW define: WOW
- name: SC1 - name: SC1
define: SC1 define: SC1
build:
- system_name: Linux
build_type: Release
compiler_name: GCC
test_path: StormTest
os: ubuntu-latest
cc: gcc
cxx: g++
- system_name: macOS
build_type: Release
compiler_name: Clang
test_path: StormTest
os: macos-latest
cc: clang
cxx: clang++
- system_name: Windows
build_type: Release
compiler_name: MSVC
test_path: Release/StormTest
os: windows-latest
cc: cl
cxx: cl
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v6
with: with:
submodules: true submodules: true