Skip to content

Commit

Permalink
Use QEMU to build on ARM.
Browse files Browse the repository at this point in the history
Closes #6
  • Loading branch information
Mailaender committed Dec 6, 2024
1 parent fa8be3d commit f3cba12
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@ permissions:
contents: read

jobs:
snapcraft:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64]
platform:
- amd64
- arm64
steps:
- uses: actions/checkout@v4

- uses: snapcore/action-build@v1
id: build
with:
snapcraft-args: --build-for=${{ matrix.arch }}

- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: diddlesnaps/snapcraft-multiarch-action@v1
id: snapcraft
with:
architecture: ${{ matrix.platform }}
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.snapcraft.outputs.snap }}
release: stable

0 comments on commit f3cba12

Please sign in to comment.