-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (57 loc) · 1.93 KB
/
Firefly-RK3399-Build.yaml
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
55
56
57
58
name: Firefly-RK3399-Build
on:
workflow_dispatch:
jobs:
prepare_release:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get time
id: time
uses: nanzm/[email protected]
with:
format: 'YYYYMMDD-HHmm'
- name: Create empty release
id: release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.time.outputs.time }}
body_path: VERSION
token: ${{ secrets.GITHUB_TOKEN }}
target_commitish: main
draft: false
outputs:
release_id: ${{ steps.release.outputs.id }}
build:
runs-on: self-hosted
needs: prepare_release
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
shell: bash
run: |
git clone https://gitee.com/openeuler/rockchip --depth=1
cd rockchip/scripts
sudo bash build.sh -n openEuler-22.03-LTS-Firefly-RK3399-aarch64-alpha1 -k https://gitee.com/openeuler/kernel.git -b openEuler-22.03-LTS -c firefly-rk3399_defconfig -r https://gitee.com/src-openeuler/openEuler-repos/raw/openEuler-22.03-LTS/generic.repo -d rk3399-firefly -s headless
- name: Upload
if: needs.prepare_release.outputs.release_id != ''
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.prepare_release.outputs.release_id }}
file: "./rockchip/scripts/build/*/*.img.xz*"
draft: false
- name: Rollback release
if: failure() && needs.prepare_release.outputs.release_id != ''
uses: author/action-rollback@stable
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.prepare_release.outputs.release_id }}
- name: Clean
shell: bash
run: |
sudo rm -rf rockchip