-
Notifications
You must be signed in to change notification settings - Fork 69
49 lines (43 loc) · 1.53 KB
/
build_win.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
# This is a basic workflow to help you get started with Actions
name: build_win
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ main ]
push:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build_win:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Get thirdParty cache
id: cache-thirdParty
uses: actions/cache@v2
with:
path: |
third_party
vendor_tools
key: third_party-win-${{ hashFiles('DEPS') }}-${{ hashFiles('vendor.json') }}
restore-keys: third_party-win-
- name: Run depsync
run: |
npm install depsync -g
depsync
shell: bash
- if: github.event_name == 'push'
name: Build cache(push)
run: |
node build_vendor -p win
- if: github.event_name == 'pull_request'
name: Windows build
run: |
node ./vendor_tools/cmake-build tgfx -p win -a x64 -o ./win/libtgfx -v -i
shell: bash