From 724ac6b9158cd0e41203c9df29f9fa8d0ffae5ef Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sun, 9 Aug 2026 12:52:59 +0200 Subject: [PATCH] Add CI pipeline --- .github/workflows/ci.yml | 68 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ae6898d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,68 @@ +name: PR Build Validation + +on: + pull_request: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + build-amd64: + name: build-amd64 + runs-on: ubuntu-22.04 + timeout-minutes: 180 + env: + DEBIAN_FRONTEND: noninteractive + FULL_DELEGATES: "false" + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Build ImageMagick for amd64 + run: | + set -euxo pipefail + chmod +x ./build.sh + ./build.sh latest amd64 + + build-arm64: + name: build-arm64 + runs-on: ubuntu-24.04-arm + timeout-minutes: 180 + env: + DEBIAN_FRONTEND: noninteractive + FULL_DELEGATES: "false" + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Build ImageMagick for arm64 + run: | + set -euxo pipefail + chmod +x ./build.sh + ./build.sh latest arm64 + + required-check: + name: required-check + if: always() + needs: + - build-amd64 + - build-arm64 + runs-on: ubuntu-22.04 + steps: + - name: Verify both builds succeeded + run: | + set -euxo pipefail + if [ "${{ needs.build-amd64.result }}" != "success" ]; then + echo "amd64 build failed" + exit 1 + fi + + if [ "${{ needs.build-arm64.result }}" != "success" ]; then + echo "arm64 build failed" + exit 1 + fi + + echo "Both architecture builds passed"