-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
73 lines (73 loc) · 2.28 KB
/
action.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: 'Armbian/build'
description: 'Armbian Linux build framework'
inputs:
board:
required: true
flavor:
required: true
release-id:
required: false
github-token:
required: false
runs:
using: "composite"
steps:
- name: Get more space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 25600
temp-reserve-mb: 4096
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
- name: Checkout
uses: actions/checkout@v3
with:
repository: armbian/build
ref: main
path: build
- name: Build
shell: bash
run: |
cd ./build
touch .ignore_changes
sed -i "s|() {|() {\ndf -h \&\& du -sh \${SRC}/* \&\& du -sh \${SRC}/cache/* \&\& rm -rf \${SRC}/cache/sources/aptcache/* \${SRC}/cache/sources/linux-kernel-worktree/* \${SRC}/cache/sources/rootfs/*\n|g" extensions/image-output-abl.sh
git status
./compile.sh \
BOARD=${{ inputs.board }} \
BRANCH=${{ inputs.branch }} \
RELEASE=noble \
BUILD_MINIMAL=no \
BUILD_DESKTOP=yes \
KERNEL_CONFIGURE=prebuilt \
DESKTOP_ENVIRONMENT=gnome \
DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base \
DESKTOP_APPGROUPS_SELECTED="" \
PACKAGE_LIST_BOARD="vim-tiny" \
EXPERT=no \
BOARD_FIRMWARE_INSTALL="-full" \
ENABLE_EXTENSIONS=mesa-vpu \
SHARE_LOG=yes \
DEBUG=yes \
KERNEL_GIT=shallow \
COMPRESS_OUTPUTIMAGE=sha,gpg,xz
- name: Upload
if: inputs.release-id != '' && inputs.github-token != ''
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
with:
release_id: ${{ inputs.release-id }}
file: "./build/output/images/*.img.xz;./build/output/images/*.img.xz.sha;./build/output/debs/linux-*.deb"
draft: false
overwrite: true
- name: Rollback release
if: failure() && inputs.release-id != '' && inputs.github-token != ''
uses: author/action-rollback@stable
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
with:
release_id: ${{ inputs.release-id }}