-
Notifications
You must be signed in to change notification settings - Fork 29
124 lines (98 loc) · 3.1 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: CI
on: [push, pull_request]
jobs:
linux_x64_gcc:
name: Linux x64 (GCC)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Linux x64
run: mkdir build && cd build && cmake .. && cmake --build . --parallel 2
env:
CC: gcc-9
CXX: g++-9
- name: Upload Linux x64 binaries
uses: actions/upload-artifact@v2
with:
name: sqfvm_linux_x64_gcc
path: build/sqfvm*
- name: Run SQF-VM Tests
working-directory: build
run: ctest --output-on-failure
- name: Run CBA A3 Tests
run: PATH=build:$PATH python tests/cba/cba_a3.py
linux_x64_clang:
name: Linux x64 (Clang)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Linux x64
run: mkdir build && cd build && cmake .. && cmake --build . --parallel 2
env:
CC: clang
CXX: clang++
- name: Upload Linux x64 binaries
uses: actions/upload-artifact@v2
with:
name: sqfvm_linux_x64_clang
path: build/sqfvm*
- name: Run SQF-VM Tests
working-directory: build
run: ctest --output-on-failure
- name: Run CBA A3 Tests
run: PATH=build:$PATH python tests/cba/cba_a3.py
macos:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build macOS
run: mkdir build && cd build && cmake .. && cmake --build . --parallel 2
- name: Upload macOS binaries
uses: actions/upload-artifact@v2
with:
name: sqfvm_macos
path: build/sqfvm*
- name: Run SQF-VM Tests
working-directory: build
run: ctest --output-on-failure
- name: Run CBA A3 Tests
run: PATH=build:$PATH python tests/cba/cba_a3.py
windows_win32:
name: Windows Win32
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build Windows Win32
run: mkdir build && cd build && cmake -A Win32 .. && cmake --build . --config Release
- name: Upload Windows Win32 binaries
uses: actions/upload-artifact@v2
with:
name: sqfvm_windows_win32
path: build/Release/*.exe
- name: Run SQF-VM Tests
working-directory: build
run: ctest --output-on-failure -C Release
- name: Run CBA A3 Tests
run: |
$env:Path += ";build/Release/"
python tests/cba/cba_a3.py
windows_x64:
name: Windows x64
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build Windows x64
run: mkdir build && cd build && cmake -A x64 .. && cmake --build . --config Release
- name: Upload Windows x64 binaries
uses: actions/upload-artifact@v2
with:
name: sqfvm_windows_x64
path: build/Release/*.exe
- name: Run SQF-VM Tests
working-directory: build
run: ctest --output-on-failure -C Release
- name: Run CBA A3 Tests
run: |
$env:Path += ";build/Release/"
python tests/cba/cba_a3.py