Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jun 7, 2020
1 parent 9c71f9d commit 8ad6e1c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Continuous Integration
on: [push, pull_request]
jobs:
build:
name: ${{matrix.os}}/${{matrix.build-type}}
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v2
- name: Make build directory
run: cmake -E make_directory build
- name: Configure
working-directory: build
run: |
cmake ../Sources \
-DCMAKE_BUILD_TYPE=${{matrix.build-type}}
shell: bash
- name: Compile
working-directory: build
run: cmake --build . --config ${{matrix.build-type}}
- name: Upload binary (Mac)
if: matrix.os == 'macos'
uses: actions/upload-artifact@v2
with:
name: cpu-${{matrix.build-type}}
path: build/cpu
- name: Upload binary (Windows)
if: matrix.os == 'windows'
uses: actions/upload-artifact@v2
with:
name: cpu-${{matrix.build-type}}.exe
path: build/${{matrix.build-type}}/cpu.exe
strategy:
matrix:
os: [windows, macos]
build-type: [Release, Debug]

0 comments on commit 8ad6e1c

Please sign in to comment.