chore: initial commit

This commit is contained in:
fallenoak 2023-02-26 17:51:03 -06:00
commit d5300e4723
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
19 changed files with 18365 additions and 0 deletions

50
.github/workflows/pr.yml vendored Normal file
View 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: BcTest
cc: gcc
cxx: g++
- name: macOS Latest (Clang)
os: macos-latest
build_type: Release
test_path: BcTest
cc: clang
cxx: clang++
- name: Windows Latest (MSVC)
os: windows-latest
build_type: Release
test_path: Release/BcTest
cc: cl
cxx: cl
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- 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 }}

53
.github/workflows/push.yml vendored Normal file
View file

@ -0,0 +1,53 @@
name: Push
on:
push:
branches:
- master
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: BcTest
cc: gcc
cxx: g++
- name: macOS Latest (Clang)
os: macos-latest
build_type: Release
test_path: BcTest
cc: clang
cxx: clang++
- name: Windows Latest (MSVC)
os: windows-latest
build_type: Release
test_path: Release/BcTest
cc: cl
cxx: cl
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- 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 }}