27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
# FIXME: currently just builds it, eventually, should use qemu to try to run
|
|
# the image (potentially as a separate action)
|
|
name: build-image-armhf
|
|
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
name: build
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: checkout project
|
|
uses: actions/checkout@v2
|
|
- name: Extract branch name
|
|
shell: bash
|
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
|
|
id: extract_branch
|
|
- name: build image
|
|
run: sudo dpkg -i ./tests/resources/qemu-user-static_5.1+dfsg-4+b1_amd64.deb &&
|
|
docker run --mount type=bind,source=$PWD,target=/PrawnOS
|
|
--privileged -v/dev:/dev debian:bullseye
|
|
/bin/bash /PrawnOS/tests/build.sh "$GITHUB_SHA" armhf ${{ steps.extract_branch.outputs.branch }} image
|
|
- name: publish image
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: CrawfishOS-armhf-git-${{ steps.extract_branch.outputs.branch }}-${{ github.sha }}.img.gz
|
|
path: CrawfishOS-armhf-git-${{ steps.extract_branch.outputs.branch }}-${{ github.sha }}.img.gz
|