-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (54 loc) · 1.49 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
60
61
62
63
64
65
name: build
on: [push]
jobs:
build-linux:
runs-on: Linux
steps:
- uses: actions/checkout@v2
- name: Setup Build Cache
run: mkdir -p ~/actions-cache && ln -s ~/actions-cache ./deps
- name: Delete Build Cache If Needed
run: python tools/ci-cache.py 1 # increment this number to invalidate cache
- name: Build C++ Debug
run: python ./tools/build.py build --debug
- name: Build C++ Release
run: python ./tools/build.py build
- name: Build Rust Debug
uses: actions-rs/cargo@v1
with:
command: build
- name: Build Rust Release
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: linux
path: out/x86_64-unknown-linux-gnu
build-windows:
runs-on: Windows
steps:
- uses: actions/checkout@v2
- name: Setup Build Cache
run: mklink /D .\deps C:\actions-cache
shell: cmd
- name: Build C++ Debug
run: python ./tools/build.py build --debug
- name: Build C++ Release
run: python ./tools/build.py build
- name: Build Rust Debug
uses: actions-rs/cargo@v1
with:
command: build
- name: Build Rust Release
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: windows
path: out/x86_64-pc-windows-msvc