forked from hanwckf/build-beikeyun
-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (44 loc) · 1.2 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build Beikeyun
on:
repository_dispatch:
workflow_dispatch:
inputs:
ssh:
description: 'SSH connection to Actions'
required: false
default: 'false'
env:
TZ: Asia/Shanghai
jobs:
build:
runs-on: ubuntu-16.04
steps:
- name: Checkout
uses: actions/checkout@main
- name: Initialization environment
run: |
sudo timedatectl set-timezone "$TZ"
sudo apt-get update
sudo apt-get install p7zip-full mtools jq u-boot-tools html-xml-utils squashfs-tools bsdtar axel -y
- name: Bilud Armbian
run: |
pwd
ls -l
make build_armbian=y build
ls -l output
- name: Check space usage
if: (!cancelled())
run: df -hT
- name: Upload output directory
uses: actions/upload-artifact@main
with:
name: output
path: output/
- name: SSH connection to Actions
uses: P3TERX/ssh2actions@v1.0.0
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
- name: Delete workflow runs
uses: GitRML/delete-workflow-runs@main
with:
retain_days: 1
keep_minimum_runs: 3