This commit is contained in:
parent
6bdb5a72fe
commit
90084aeeea
57
.github/workflows/build.yml
vendored
Normal file
57
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
name: Build images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- showpiece
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
|
||||
jobs:
|
||||
|
||||
build_images:
|
||||
name: Build images
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
fail-fast: true
|
||||
env:
|
||||
DEPLOY: startsWith(github.ref, 'refs/tags/v')
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Apply patches
|
||||
run: ./runtime-patches.sh
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install -y qemu-user-static quilt debootstrap libarchive-tools arch-test binfmt-support &&
|
||||
sudo systemctl restart systemd-binfmt
|
||||
|
||||
- name: Setup binfmt_misc
|
||||
run: |
|
||||
ls /proc/sys/fs/binfmt_misc/ || true
|
||||
sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc || true
|
||||
sudo /usr/bin/register-binfmt
|
||||
|
||||
- name: Run build process
|
||||
run: |
|
||||
sudo ./build.sh &&
|
||||
mv *-arm64-standalone.img showpieceos-arm64-standalone.img &&
|
||||
mv *-arm64-client.img showpieceos-arm64-client.img
|
||||
|
||||
- name: Publish artifacts
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
name: ${{ github.ref_name }}
|
||||
files: deploy/*.img
|
||||
|
Loading…
x
Reference in New Issue
Block a user