-
Notifications
You must be signed in to change notification settings - Fork 36
43 lines (36 loc) · 959 Bytes
/
main.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
36
37
38
39
40
41
42
43
name: Build
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.platform.os }}
name: ${{ matrix.platform.name }}
steps:
- uses: actions/checkout@v3
- name: Build
run: |
cmake .
cmake --build . --config Release
cmake --install . --prefix opengametools-install
- name: Test
run: |
ctest -V -C Release .
- name: Upload the build artifacts
uses: actions/upload-artifact@v3
with:
name: opengametools-${{ matrix.platform.name }}
path: opengametools-install
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows, os: windows-2022 }
- { name: Ubuntu, os: ubuntu-latest }
- { name: MacOS, os: macos-latest }