Install libraspberrypi-bin & mrcal packages (#7) #57
Workflow file for this run
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 driver | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- 'v*' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: limelight | |
script: ./install_limelight.sh | |
base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz | |
- name: raspi | |
script: ./install_pi.sh | |
base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz | |
- name: opi5 | |
script: ./install_opi5.sh | |
base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v1.30/ubuntu-22.04.3-preinstalled-server-arm64-orangepi-5.img.xz | |
name: "Build for ${{ matrix.name }}" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Fetch tags | |
run: git fetch --tags --force | |
- uses: pguyot/arm-runner-action@HEAD | |
id: install_deps | |
with: | |
image_additional_mb: 1500 | |
base_image: ${{ matrix.base_image }} | |
commands: ${{ matrix.script }} | |
- name: Compress built image | |
run: | | |
mv ${{ steps.install_deps.outputs.image }} photonvision_${{ matrix.name }}.img | |
sudo xz -T 0 -v photonvision_${{ matrix.name }}.img | |
- uses: actions/upload-artifact@master | |
with: | |
name: photonvision_${{ matrix.name }}.img.xz | |
path: photonvision_${{ matrix.name }}.img.xz | |
if-no-files-found: error | |
retention-days: 1 | |
release: | |
needs: [build] | |
runs-on: ubuntu-22.04 | |
steps: | |
# Download literally every single artifact | |
- uses: actions/download-artifact@v4 | |
- run: find | |
# Push to dev release | |
- uses: pyTooling/Actions/releaser@r0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: 'Dev' | |
rm: true | |
files: | | |
**/*.xz | |
if: github.event_name == 'push' | |
# Upload all xz archives to GH tag if tagged | |
- uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
**/*.xz | |
if: startsWith(github.ref, 'refs/tags/v') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |