diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ea5d27e..b068013 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index c1c4120..020c2d6 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -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: