-
Notifications
You must be signed in to change notification settings - Fork 37
59 lines (55 loc) · 1.3 KB
/
build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build
on:
push:
branches:
- master
- neworigins
- neworigins-v6
- jt-*
workflow_dispatch:
pull_request:
jobs:
compile:
name: Compile
runs-on: ${{ format('{0}-latest', matrix.os) }}
strategy:
matrix:
os:
- ubuntu
- windows
- macos
include:
- os: windows
ext: .exe
steps:
- uses: actions/checkout@v4
- run: make all-clean && make all
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}
path: |
basic/basic${{ matrix.ext }}
fracas/fracas${{ matrix.ext }}
havilah/havilah${{ matrix.ext }}
kingdoms/kingdoms${{ matrix.ext }}
neworigins/neworigins${{ matrix.ext }}
standard/standard${{ matrix.ext }}
test:
name: Test
runs-on: ubuntu-latest
needs: compile
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: ubuntu
- run: ./run-snapshots.sh
working-directory: snapshot-tests
unittest:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make unittest
- run: ./unittest
working-directory: unittest