Update README.md #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |