Skip to content

Commit

Permalink
feat: Using action diddlesnaps/snapcraft-multiarch-action
Browse files Browse the repository at this point in the history
Signed-off-by: Lincoln Wallace <[email protected]>
  • Loading branch information
locnnil committed Jan 11, 2024
1 parent 892d466 commit 3a4061f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ arm64 ]
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Build snap
uses: snapcore/action-build@v1
- name: Build snap for arm64
uses: diddlesnaps/snapcraft-multiarch-action@v1
id: build
with:
architectures: ${{ matrix.platform }}

- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down
3 changes: 1 addition & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ confinement: strict

base: core22
architectures:
- build-on: [amd64]
build-for: [arm64]
- build-on: [arm64]

plugs:
# This is to communicate with the OpenThread Border Router snap (https://snapcraft.io/openthread-border-router)
Expand Down

0 comments on commit 3a4061f

Please sign in to comment.