From d63af5f21952e763f6549e0bf93d14a92c0a0cfe Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 24 Nov 2025 14:17:32 +0100 Subject: [PATCH] test remote build --- .github/workflows/snap-release.yml | 33 +++++++++++++++++------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/snap-release.yml b/.github/workflows/snap-release.yml index 6d1adad2..27240d28 100644 --- a/.github/workflows/snap-release.yml +++ b/.github/workflows/snap-release.yml @@ -17,17 +17,22 @@ on: - "false" jobs: - buildSnap: - environment: snap - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - uses: snapcore/action-build@v1 - id: build - - uses: snapcore/action-publish@v1 - if: ${{ github.event_name == 'release' || github.event.inputs.publish == 'true' }} - env: - SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} - with: - snap: ${{ steps.build.outputs.snap }} - release: stable + buildSnap: + environment: snap + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arch: [amd64, arm64] + steps: + - uses: actions/checkout@v5 + - uses: snapcore/action-build@v1 + id: build + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + with: + snapcraft-args: "--remote-build --target-arch=${{ matrix.arch }}" + - uses: actions/upload-artifact@v4 + with: + name: yq-${{ matrix.arch }} + path: ${{ steps.build.outputs.snap }}