mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
chore(build): add WOW and SC1 flavors
This commit is contained in:
parent
222e3ec624
commit
62121bef6f
4 changed files with 54 additions and 18 deletions
27
.github/workflows/pr.yml
vendored
27
.github/workflows/pr.yml
vendored
|
|
@ -4,34 +4,43 @@ on: pull_request
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.config.name }}
|
||||
runs-on: ${{ matrix.config.os }}
|
||||
name: ${{ matrix.flavor.name }} / ${{ matrix.build.os_name }} (${{ matrix.build.compiler_name }})
|
||||
runs-on: ${{ matrix.build.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
config:
|
||||
- name: Ubuntu Latest (GCC)
|
||||
build:
|
||||
- os_name: Ubuntu Latest
|
||||
compiler_name: GCC
|
||||
os: ubuntu-latest
|
||||
build_type: Release
|
||||
test_path: StormTest
|
||||
cc: gcc
|
||||
cxx: g++
|
||||
|
||||
- name: macOS Latest (Clang)
|
||||
- os_name: macOS Latest
|
||||
compiler_name: Clang
|
||||
os: macos-latest
|
||||
build_type: Release
|
||||
test_path: StormTest
|
||||
cc: clang
|
||||
cxx: clang++
|
||||
|
||||
- name: Windows Latest (MSVC)
|
||||
- os_name: Windows Latest
|
||||
compiler_name: MSVC
|
||||
os: windows-latest
|
||||
build_type: Release
|
||||
test_path: Release/StormTest
|
||||
cc: cl
|
||||
cxx: cl
|
||||
|
||||
flavor:
|
||||
- name: WoW
|
||||
define: WOW
|
||||
- name: SC1
|
||||
define: SC1
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
@ -41,10 +50,10 @@ jobs:
|
|||
run: mkdir build
|
||||
|
||||
- name: Configure
|
||||
run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
|
||||
run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build.build_type }} -DWHOA_STORM_FLAVOR=${{ matrix.flavor.define}}
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build --config ${{ matrix.config.build_type }}
|
||||
run: cmake --build build --config ${{ matrix.build.build_type }}
|
||||
|
||||
- name: Test
|
||||
run: ./build/test/${{ matrix.config.test_path }}
|
||||
run: ./build/test/${{ matrix.build.test_path }}
|
||||
|
|
|
|||
27
.github/workflows/push.yml
vendored
27
.github/workflows/push.yml
vendored
|
|
@ -7,34 +7,43 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.config.name }}
|
||||
runs-on: ${{ matrix.config.os }}
|
||||
name: ${{ matrix.flavor.name }} / ${{ matrix.build.os_name }} (${{ matrix.build.compiler_name }})
|
||||
runs-on: ${{ matrix.build.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
config:
|
||||
- name: Ubuntu Latest (GCC)
|
||||
build:
|
||||
- os_name: Ubuntu Latest
|
||||
compiler_name: GCC
|
||||
os: ubuntu-latest
|
||||
build_type: Release
|
||||
test_path: StormTest
|
||||
cc: gcc
|
||||
cxx: g++
|
||||
|
||||
- name: macOS Latest (Clang)
|
||||
- os_name: macOS Latest
|
||||
compiler_name: Clang
|
||||
os: macos-latest
|
||||
build_type: Release
|
||||
test_path: StormTest
|
||||
cc: clang
|
||||
cxx: clang++
|
||||
|
||||
- name: Windows Latest (MSVC)
|
||||
- os_name: Windows Latest
|
||||
compiler_name: MSVC
|
||||
os: windows-latest
|
||||
build_type: Release
|
||||
test_path: Release/StormTest
|
||||
cc: cl
|
||||
cxx: cl
|
||||
|
||||
flavor:
|
||||
- name: WoW
|
||||
define: WOW
|
||||
- name: SC1
|
||||
define: SC1
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
@ -44,10 +53,10 @@ jobs:
|
|||
run: mkdir build
|
||||
|
||||
- name: Configure
|
||||
run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
|
||||
run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build.build_type }} -DWHOA_STORM_FLAVOR=${{ matrix.flavor.define}}
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build --config ${{ matrix.config.build_type }}
|
||||
run: cmake --build build --config ${{ matrix.build.build_type }}
|
||||
|
||||
- name: Test
|
||||
run: ./build/test/${{ matrix.config.test_path }}
|
||||
run: ./build/test/${{ matrix.build.test_path }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue