Skip to content

Commit

Permalink
Avoid QEMU.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Nov 26, 2024
1 parent b7f5290 commit 5fcc906
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ permissions:
contents: read

jobs:
build:
snapcraft:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- amd64
- arm64
arch: [amd64, arm64]
steps:
- 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
- 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: edge
6 changes: 4 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ description: OpenChrom® is an Open Source tool for the analysis and visualizati
grade: stable
confinement: strict
architectures:
- build-on: amd64
- build-on: arm64
- build-on: [amd64]
build-for: [amd64]
- build-on: [amd64, arm64]
build-for: [arm64]
apps:
openchrom:
extensions:
Expand Down

0 comments on commit 5fcc906

Please sign in to comment.