mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
name: Push
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.flavor.name }} / ${{ matrix.build.os_name }} (${{ matrix.build.compiler_name }})
|
|
runs-on: ${{ matrix.build.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
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:
|
|
- name: WoW
|
|
define: WOW
|
|
- name: SC1
|
|
define: SC1
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Prepare
|
|
run: mkdir build
|
|
|
|
- name: Configure
|
|
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.build.build_type }}
|
|
|
|
- name: Test
|
|
run: ./build/test/${{ matrix.build.test_path }}
|