-
Notifications
You must be signed in to change notification settings - Fork 42
35 lines (35 loc) · 1.05 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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]