Build Test Images #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: pwnagotchi-snflpgs | |
- name: Build ${{ matrix.id }} | |
run: | | |
cd pwnagotchi-snflpgs | |
packer init | |
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 |