Update vendor_tools. #14
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_linux | |
# 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_linux: | |
runs-on: ubuntu-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-linux-${{ hashFiles('DEPS') }}-${{ hashFiles('vendor.json') }} | |
restore-keys: third_party-linux- | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Run sync_deps script | |
run: | | |
chmod +x sync_deps.sh | |
./sync_deps.sh | |
- if: github.event_name == 'push' | |
name: Build cache(push) | |
run: | | |
node build_vendor -p linux | |
- if: github.event_name == 'pull_request' | |
name: Run build_linux script | |
run: | | |
chmod +x build_linux.sh | |
./build_linux.sh | |
cd linux | |
mkdir build | |
cd build | |
cmake ../ | |
make -j8 |