-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (40 loc) · 1.08 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
name: build
on: [push]
jobs:
build-unix:
strategy:
matrix:
os: [ubuntu, macos]
compiler: [g++, clang++]
defines: [standard]
exclude:
- os: macos
compiler: g++
name: ${{matrix.os}} ${{matrix.compiler}}
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v1
- name: Update submodules
run: git submodule update --init --recursive
- name: CMake Configure
run: mkdir build && cd build && cmake ..
- name: Build
run: cd build && cmake --build . --config Release
- name: Run unit tests
run: cd build && ./ZmeyaTest
build-windows:
runs-on: windows-latest
strategy:
matrix:
arch: [Win32, x64]
defines: [standard]
steps:
- uses: actions/checkout@v1
- name: Update submodules
run: git submodule update --init --recursive
- name: CMake Configure
run: mkdir build && cd build && cmake ..
- name: Build
run: cd build && cmake --build . --config Release
- name: Run unit tests
run: build/Release/ZmeyaTest.exe