Skip to content

Release Ubuntu 24.04 Beta wiith Rockchip Linux 6.1 #32

Release Ubuntu 24.04 Beta wiith Rockchip Linux 6.1

Release Ubuntu 24.04 Beta wiith Rockchip Linux 6.1 #32

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
launchpad:
description: use launchpad
required: true
default: false
type: boolean
kernel:
type: choice
description: Kernel
options:
- rockchip-5.10
- rockchip-6.1
permissions:
contents: write
run-name: Release Ubuntu 24.04 Beta wiith Rockchip Linux 6.1
jobs:
rootfs:
runs-on: ubuntu-latest
name: Build rootfs
strategy:
matrix:
project:
- preinstalled-server
steps:
- name: Get more disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout LFS
shell: bash
run: git lfs fetch && git lfs checkout
- name: Install dependencies
shell: bash
run: |
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y build-essential gcc-aarch64-linux-gnu bison \
qemu-user-static qemu-system-arm qemu-efi u-boot-tools binfmt-support \
debootstrap flex libssl-dev bc rsync kmod cpio xz-utils fakeroot parted \
udev dosfstools uuid-runtime git-lfs device-tree-compiler python2 python3 \
python-is-python3 fdisk bc debhelper python3-pyelftools python3-setuptools \
python3-distutils python3-pkg-resources swig libfdt-dev libpython3-dev dctrl-tools
- name: Build
shell: bash
run: sudo ./build.sh --board=orangepi-5 --release=noble ${{ matrix.project == 'preinstalled-desktop' && '--desktop-only' || matrix.project == 'preinstalled-server' && '--server-only' }} --kernel=${{ github.event.inputs.kernel }} --rootfs-only
- name: Upload
uses: actions/[email protected]
with:
name: ubuntu-noble-${{ matrix.project }}-arm64-rootfs
path: ./build/ubuntu-*-${{ matrix.project }}-arm64.rootfs.tar.xz
if-no-files-found: error
prepare_release:
name: Create release
runs-on: ubuntu-latest
needs: [rootfs]
steps:
- name: Create empty release
id: release
uses: softprops/action-gh-release@v1
with:
tag_name: v1.34
body_path: README.md
token: ${{ secrets.GITHUB_TOKEN }}
target_commitish: main
draft: true
outputs:
release_id: ${{ steps.release.outputs.id }}
build:
runs-on: ubuntu-latest
needs: [rootfs, prepare_release]
name: Build image
strategy:
matrix:
board:
- orangepi-3b
- orangepi-5
- orangepi-5b
- orangepi-5-plus
- rock-5b
- rock-5a
- rock-5-itx
- radxa-cm5-io
- radxa-nx5-io
- radxa-zero3
- nanopc-t6
- nanopi-r6c
- nanopi-r6s
- indiedroid-nova
- mixtile-blade3
- mixtile-core3588e
- lubancat-4
- turing-rk1
- armsom-sige7
- armsom-w3
project:
- preinstalled-server
steps:
- name: Get more disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout LFS
shell: bash
run: git lfs fetch && git lfs checkout
- name: Checkout rootfs
uses: actions/[email protected]
with:
name: ubuntu-noble-${{ matrix.project }}-arm64-rootfs
path: ./build/
- name: Install dependencies
shell: bash
run: |
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y build-essential gcc-aarch64-linux-gnu bison \
qemu-user-static qemu-system-arm qemu-efi u-boot-tools binfmt-support \
debootstrap flex libssl-dev bc rsync kmod cpio xz-utils fakeroot parted \
udev dosfstools uuid-runtime git-lfs device-tree-compiler python2 python3 \
python-is-python3 fdisk bc debhelper python3-pyelftools python3-setuptools \
python3-distutils python3-pkg-resources swig libfdt-dev libpython3-dev dctrl-tools
- name: Build
shell: bash
run: |
args=""
if [ "${{ inputs.launchpad }}" == true ]; then
args="--launchpad"
fi
sudo ./build.sh --board=${{ matrix.board }} $args --release=noble ${{ matrix.project == 'preinstalled-desktop' && '--desktop-only' || matrix.project == 'preinstalled-server' && '--server-only' }} --kernel=${{ github.event.inputs.kernel }}
- 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: "./images/ubuntu-*-preinstalled-*-arm64-${{ matrix.board }}.*"
draft: true
overwrite: true
- name: Clean cache
shell: bash
run: sync && sudo rm -rf ./images/ ./build/ && sync