Skip to content

chore(deps): update dependency armbian/build to v25.2.0-trunk.137 #37

chore(deps): update dependency armbian/build to v25.2.0-trunk.137

chore(deps): update dependency armbian/build to v25.2.0-trunk.137 #37

# Taken from https://github.com/mainsail-crew/armbian-builds/blob/d39a0ebc2d53446c32d1d5f936df2528ebd66de1/.github/workflows/BuildTrain.yml
name: Build branches
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-armbian:
name: Armbian
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch: [current, edge]
steps:
- name: Get more space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 25600
swap-size-mb: 1024
remove-dotnet: "true"
remove-android: "true"
remove-codeql: "true"
remove-docker-images: "true"
remove-haskell: "true"
- name: Checkout this repository
uses: actions/checkout@v4
with:
path: mellowfly-geminipi-armbian
- name: Get armbian version
id: armbian-version
run: |
VERSION=$(cat ./mellowfly-geminipi-armbian/armbian-version.txt)
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Get ubuntu version
id: ubuntu-version
run: |
VERSION=$(cat ./mellowfly-geminipi-armbian/ubuntu-version.txt)
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Checkout armbian Repository
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: armbian/build
ref: ${{ steps.armbian-version.outputs.version }}
path: armbian
- name: Apply patches
run: |
cd armbian/
git apply ../mellowfly-geminipi-armbian/patches/*.patch
- name: Build Armbian
run: |
cd armbian/
./compile.sh \
BOARD=mellowflygeminipi \
BRANCH=${{ matrix.branch }} \
RELEASE=${{ steps.ubuntu-version.outputs.version }} \
BUILD_MINIMAL=no \
BUILD_DESKTOP=no \
KERNEL_CONFIGURE=no \
INSTALL_HEADERS=yes \
BOOTFS_TYPE=fat
- name: Retrieve image name
id: image-name
run: |
WORKSPACE=$(echo ${{ github.workspace }})
cd $WORKSPACE/armbian/output/images/
IMAGE_NAME=$(ls -1 *.img | head -n1)
echo "image_name=${IMAGE_NAME}" >> $GITHUB_OUTPUT
- name: Compressing Image
run: |
WORKSPACE=$(echo ${{ github.workspace }})
cd $WORKSPACE/armbian/output/images/
xz -efkvz "${{ steps.image-name.outputs.image_name }}" || true
- name: Calculating checksums
run: |
WORKSPACE=$(echo ${{ github.workspace }})
cd $WORKSPACE/armbian/output/images/
sha256sum "${{ steps.image-name.outputs.image_name }}" > "${{ steps.image-name.outputs.image_name }}.sha256"
sha256sum "${{ steps.image-name.outputs.image_name }}.xz" > "${{ steps.image-name.outputs.image_name }}.xz.sha256"
- name: Upload to artifacts
uses: actions/upload-artifact@v4
with:
name: "${{ matrix.branch }}"
path: ./armbian/output/