Skip to content

DShanPi-A1-Build

DShanPi-A1-Build #2

Workflow file for this run

name: DShanPi-A1-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
cd SBC-sig/scripts
sudo bash build-image-docker.sh \
--board dshanpi-a1 \
-d https://repo.openeuler.org/openEuler-22.03-LTS-SP3/docker_img/aarch64/openEuler-docker.aarch64.tar.xz \
-n openEuler-22.03-LTS-SP3-DShanPi-A1-aarch64-alpha1 \
-k https://github.com/dshanpi/dshanpi-a1-linux-kernel.git \
-b rk-6.1 \
-c rockchip_linux_defconfig \
-r https://gitee.com/src-openeuler/openEuler-repos/raw/openEuler-22.03-LTS-SP3/generic.repo \
-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: "./SBC-sig/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 }}