-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (36 loc) · 1018 Bytes
/
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
name: build
on:
push:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Setup cmake
uses: jwlawson/[email protected]
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: true # Fetch athrill repo
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Build athrill for Linux or Mac
if: " (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') "
run: |
mkdir build
cd build
cmake -H..
make
./athrill2
- name: Setup MinGW for Windows
if: matrix.os == 'windows-latest'
uses: egor-tensin/setup-mingw@v2
- name: Build athrill for Windows
if: matrix.os == 'windows-latest'
run: |
mkdir build
cd build
cmake -G"MinGW Makefiles" ..
make
.\athrill2.exe