mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
chore(build): add pr workflow
This commit is contained in:
parent
c03a90f383
commit
8210d368f6
1 changed files with 48 additions and 0 deletions
48
.github/workflows/pr.yml
vendored
Normal file
48
.github/workflows/pr.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
name: PR
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: ${{ matrix.config.name }}
|
||||||
|
runs-on: ${{ matrix.config.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
config:
|
||||||
|
- name: Ubuntu Latest (GCC)
|
||||||
|
os: ubuntu-latest
|
||||||
|
build_type: Release
|
||||||
|
test_path: StormTest
|
||||||
|
cc: gcc
|
||||||
|
cxx: g++
|
||||||
|
|
||||||
|
- name: macOS Latest (Clang)
|
||||||
|
os: macos-latest
|
||||||
|
build_type: Release
|
||||||
|
test_path: StormTest
|
||||||
|
cc: clang
|
||||||
|
cxx: clang++
|
||||||
|
|
||||||
|
- name: Windows Latest (MSVC)
|
||||||
|
os: windows-latest
|
||||||
|
build_type: Release
|
||||||
|
test_path: Release/StormTest
|
||||||
|
cc: cl
|
||||||
|
cxx: cl
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: mkdir build
|
||||||
|
|
||||||
|
- name: Configure
|
||||||
|
run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build build --config ${{ matrix.config.build_type }}
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: ./build/test/${{ matrix.config.test_path }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue