-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (53 loc) · 1.59 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
name: Build binary
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Get toolchain from cache
id: cache-toolchain
uses: actions/[email protected]
with:
# A directory to store and save the cache
path: scripts/prefix
# An explicit key for restoring and saving the cache
key: prefix-${{hashFiles('scripts/create_devenv.py')}}
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
name: Install prefix
run: python scripts/create_devenv.py scripts/dls scripts/prefix
- name: Build binary
run: scripts/build.bat
- uses: actions/upload-artifact@v3
with:
name: th06e
path: |
build/th06e.exe
build/th06e.pdb
build-diff:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Get toolchain from cache
id: cache-toolchain
uses: actions/[email protected]
with:
# A directory to store and save the cache
path: scripts/prefix
# An explicit key for restoring and saving the cache
key: prefix-${{hashFiles('scripts/create_devenv.py')}}
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
name: Install prefix
run: python scripts/create_devenv.py scripts/dls scripts/prefix
- name: Build binary
run: scripts/build.bat DIFFBUILD=true
- uses: actions/upload-artifact@v3
with:
name: th06e-diff
path: |
build/th06e.exe
build/th06e.pdb