-
Notifications
You must be signed in to change notification settings - Fork 69
51 lines (45 loc) · 1.33 KB
/
build_linux.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
# 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