forked from Sniffleupagus/pwnagotchi-snflpgs
-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (93 loc) · 2.74 KB
/
BuildTestImages.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Build Test Images
run-name: Build Test Images
on:
workflow_dispatch:
# inputs:
# bb_ver:
# description: version
# required: true
# default: "alpha2"
# type: string
# uboot_gh_repo:
# description: u-boot github repo
# required: true
# default: ArchemedIan/u-boot-rockchip
# type: string
# uboot_ref:
# description: u-boot ref
# required: true
# default: bb
# type: string
# rkbin_ref:
# description: rkbin ref
# required: true
# default: master
# type: string
# armbian_gh_repo:
# description: armbian build github repo
# required: true
# default: armbian/build
# type: string
# armbian_ref:
# description: armbian ref
# required: true
# default: v23.11
# type: string
jobs:
build:
name: ${{ matrix.id }}
#runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
include:
#- id: "image"
- id: "image64"
#- id: "orangepwn02w"
#- id: "bananapwnm2zero"
# - id: "bananapwnm4zero"
#- id: ""
#- id: ""
steps:
# - name: Maximize build space
# uses: easimon/maximize-build-space@master
# with:
# root-reserve-mb: 512
# swap-size-mb: 1024
# remove-dotnet: 'true'
# overprovision-lvm: 'true'
# remove-android: 'true'
# remove-haskell: 'true'
# remove-codeql: 'true'
# remove-docker-images: 'true'
- name: prep/dependencies
run: |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install packer wget gettext
packer plugins install github.com/solo-io/arm-image
#packer plugins install github.com/hashicorp/ansible
- name: Checkout
uses: actions/checkout@v4
with:
path: .
- name: Build ${{ matrix.id }}
run: |
pwd
echo
ls -lR
echo starting build...
echo
packer init builder/pwnagotchi.json.pkr.hcl
mkdir build/stage
sudo make langs
sudo make bases
sudo make ${{ matrix.id }}
- name: debug file listing
run: |
ls -l ${{ env.GITHUB_WORKSPACE }}
- name: Upload ${{ matrix.id }} image
uses: actions/upload-artifact@v4
with:
name: Pwnagatchi-${{ matrix.id }}-TestImage-${{ env.GITHUB_RUN_NUMBER }}
path: pwnagotchi-snflpgs/**/*.xz