-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (74 loc) · 2.37 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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: [pi-bullseye] # <-- Add targets here!
steps:
# - name: Maximize build space
# uses: easimon/maximize-build-space@master
# with:
# root-reserve-mb: 512
# swap-size-mb: 10
# remove-dotnet: 'true'
# remove-android: 'true'
# remove-haskell: 'true'
# overprovision-lvm: 'true'
# - name: remove even more
# run: |
# sudo apt-get purge -y \
# '^llvm-.*' \
# 'php.*' \
# '^mongodb-.*' \
# '^mysql-.*' \
# azure-cli \
# google-chrome-stable \
# firefox \
# powershell \
# microsoft-edge-stable \
# mono-devel \
# google-cloud-cli \
# dotnet-sdk-8.0 \
# dotnet-sdk-7.0 \
# temurin-21-jdk \
# dotnet-sdk-6.0 \
# temurin-17-jdk \
# temurin-11-jdk \
# gcc-13 \
# temurin-8-jdk \
# g++-13 \
# gfortran-13 \
# cpp-13 \
# openjdk-11-jre-headless
# sudo df -h
# sudo apt-get autoremove -y
# sudo apt-get clean
- name: Setup env
run: |
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr | awk '{printf "%.2f MB \t %s\n", $1/(1024), $2}'
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: dep
run: sudo apt-get install -y unzip tree curl git qemu qemu-user-static binfmt-support
- name: debug
run: sudo touch /host-is-here
- name: update
run: |
sudo git clone https://github.com/OpenHD/OpenHD-ImageBuilder
sudo mv OpenHD-ImageBuilder/images .
sudo mv OpenHD-ImageBuilder/stages/01-Baseimage stages/
sudo rm -Rf OpenHD-ImageBuilder
- name: configure
run: sudo bash build.sh ${{ matrix.TARGET }} ${{ matrix.TESTING }}
- name: debug
run: |
tree