This repository has been archived on 2021-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
mudbugos/.github/workflows/build-image-arm64.yml

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-arm64
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" arm64 ${{ steps.extract_branch.outputs.branch }} image
- name: publish image
uses: actions/upload-artifact@v2
with:
name: CrawfishOS-arm64-git-${{ steps.extract_branch.outputs.branch }}-${{ github.sha }}.img.gz
path: CrawfishOS-arm64-git-${{ steps.extract_branch.outputs.branch }}-${{ github.sha }}.img.gz