-
Notifications
You must be signed in to change notification settings - Fork 137
38 lines (33 loc) · 973 Bytes
/
build.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
name: Build
on:
push:
branches:
- master
tags:
- 'v*'
schedule:
- cron: '0 16 * * 0'
jobs:
build_test:
name: Build
runs-on: self-hosted
timeout-minutes: 720
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get Env
run: env
# - name: Ckeck Build
# timeout-minutes: 720
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
# run: scripts/tests/build_test -s Install-deps -e CHK
- name: Release Build
timeout-minutes: 720
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/master' }}
run: scripts/tests/build_test -s Install-deps -e REL
- name: Rootfs Cache Build
timeout-minutes: 720
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/master' }}
run: scripts/tests/build_test -s Install-deps -e "\-CACHE"