Skip to content

Add CI workflows to test the destination input #9

Add CI workflows to test the destination input

Add CI workflows to test the destination input #9

Workflow file for this run

name: build-os

Check failure on line 1 in .github/workflows/test-pishrink.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-pishrink.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: strategy
on:
pull_request:
branches:
- main
paths-ignore:
- '**/README.md'
push:
branches:
- main
paths-ignore:
- '**/README.md'
merge_group:
workflow_dispatch:
jobs:
strategy:
fail-fast: false
matrix:
destination:
- ''
- 'destination.img'
- 'destination.img.gz'
build:
name: Build test image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Make a Pifile for Pimod
uses: 1arp/create-a-file-action@0.4.5
with:
file: cowsay.Pifile
content: |
FROM https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz
TO cowsay-image.img
PUMP 8G
# Install and test out cowsay:
RUN apt-get update
RUN apt-get install -y cowsay
RUN /usr/games/cowsay "I'm running in a chroot!"
- name: Build the image
uses: Nature40/pimod@master
with:
pifile: cowsay.Pifile
- name: Shrink the image
uses: ./
with:
image: cowsay-image.img
destination: ${{ matrix.destination }}
compress: gzip
compress-parallel: true
- name: Upload image to Job Artifacts
uses: actions/upload-artifact@v4
with:
name: rpi-cowsay-arm64-latest
path: cowsay-image.img.gz
if-no-files-found: error
retention-days: 0
compression-level: 0
overwrite: true