Skip to content

Firefly-ITX-3588J-Build #8

Firefly-ITX-3588J-Build

Firefly-ITX-3588J-Build #8

name: Firefly-ITX-3588J-Build
on:
workflow_dispatch:
jobs:
prepare_release:
runs-on: ubuntu-22.04-arm
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: ubuntu-22.04-arm
needs: prepare_release
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
shell: bash
run: |
git clone https://gitee.com/chainsx/SBC-sig --depth=1 -b test
cd SBC-sig/scripts/rockchip/
sudo bash build-image-docker.sh \
--board firefly-itx-3588j \
-d https://repo.openeuler.org/openEuler-22.03-LTS/docker_img/aarch64/openEuler-docker.aarch64.tar.xz \
-n openEuler-22.03-RK3588-Firefly-ITX-3588J-aarch64-alpha1 \
-k https://gitee.com/openeuler/rockchip-kernel.git \
-b openEuler-22.03-LTS-RK3588 \
-c openeuler_rk3588_defconfig \
-r https://gitee.com/src-openeuler/openEuler-repos/raw/openEuler-22.03-LTS/generic.repo \
-s xfce
- 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: "./SBC-sig/scripts/rockchip/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 }}