Skip to content

Build rpi64 recipe under GitHub actions #9

Build rpi64 recipe under GitHub actions

Build rpi64 recipe under GitHub actions #9

Workflow file for this run

name: Build images
on:
push:
pull_request:
workflow_dispatch:
# TODO add all-green job
# TODO add dependabot for this ci file
# TODO can we fallback to no-fakemachine if running in a fork _OR_ at least add a scheduling timeout ?
#jobs:
# build:
# runs-on: ubuntu-latest
# if: github.event_name != "pull_request" || github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
# TODO make this a strategy: matrix to build all images in parallel
# TODO build ospacks first
env:
TMP: '/scratch'
jobs:
print_event:
name: print github event
runs-on: ubuntu-latest
steps:
- name: dump github context
run: echo ${{ toJson(github) }}
build_images:
name: Build images
# TODO test this works...
#runs-on: [self-hosted, Linux, X64, kvm]
runs-on: ${{ github.repository_owner == 'go-debos' && '[self-hosted, Linux, X64, kvm]' || 'ubuntu-latest' }}
container:
image: ghcr.io/go-debos/debos:main
# --device=/dev/kvm
options: >-
--security-opt label=disable
--cap-add=SYS_PTRACE
--tmpfs /scratch:exec
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Create output directory
run: mkdir out
- name: Build rpi64 image
run: debos --artifactdir=out rpi64/debimage-rpi64.yaml
- name: Publish rpi64 artifacts
uses: actions/upload-artifact@v2
with:
name: rpi64
path: out/
if-no-files-found: error