-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (39 loc) · 1.28 KB
/
buildMe.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
name: Image build on event
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
if: "github.event_name == 'push' && !contains(github.event.head_commit.modified, 'last.releases')"
strategy:
fail-fast: false # Don't fail all if any of the jobs is failing
matrix:
TESTING: [release]
TARGET: [rock5armbian] # <-- Add targets here!
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
overprovision-lvm: 'true'
- name: Setup env
run: |
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
### ONLY THIS RELEVANT FOR BUILDING ###
- uses: actions/checkout@v3
- name: update
run: sudo apt-get update
- name: fix ci's
run: sudo apt-mark hold grub-efi-amd64-signed
- name: upgrade
run: sudo apt-get upgrade -y
- name: dep
run: sudo apt-get install -y unzip curl git qemu qemu-user-static binfmt-support
- name: debug
run: ls -a
- name: configure
run: sudo bash build.sh ${{ matrix.TARGET }} ${{ matrix.TESTING }}