From 3b51f709d5e8404d6a55b33f6290deaf4331b311 Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Sun, 27 Apr 2025 21:03:55 -0500 Subject: [PATCH] Define build action --- .github/workflows/build.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..597c0e7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,50 @@ +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 + + - 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 +