mirror of
https://github.com/thunderbrewhq/typhoon.git
synced 2025-12-12 02:22:30 +00:00
chore(build): add pr workflow
This commit is contained in:
parent
f3ed5627b5
commit
6126778dcb
1 changed files with 50 additions and 0 deletions
50
.github/workflows/pr.yml
vendored
Normal file
50
.github/workflows/pr.yml
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
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: TempestTest
|
||||||
|
cc: gcc
|
||||||
|
cxx: g++
|
||||||
|
|
||||||
|
- name: macOS Latest (Clang)
|
||||||
|
os: macos-latest
|
||||||
|
build_type: Release
|
||||||
|
test_path: TempestTest
|
||||||
|
cc: clang
|
||||||
|
cxx: clang++
|
||||||
|
|
||||||
|
- name: Windows Latest (MSVC)
|
||||||
|
os: windows-latest
|
||||||
|
build_type: Release
|
||||||
|
test_path: Release/TempestTest
|
||||||
|
cc: cl
|
||||||
|
cxx: cl
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- 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