-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (35 loc) · 933 Bytes
/
cmake.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
44
45
# Copyright (c) 2017-2021, GameProgressive Team
# All rights reserved.
# Continuous integration workflow.
name: build
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
jobs:
build:
name: Build and Test
strategy:
fail-fast: false
matrix:
build: [ Release, Debug ]
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: recursive
- name: Configure
run: cmake -B ${{ github.workspace }}/out
- name: Build
run: cmake --build ${{ github.workspace }}/out --config ${{ matrix.build }} --parallel
- name: Test
working-directory: ${{ github.workspace }}/out
run: ctest -C ${{ matrix.build }}