From cb561417c39144991bb663768bc7a2843a02a563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz=20=28Saviq=29?= Date: Fri, 25 Aug 2023 14:56:56 +0200 Subject: [PATCH 1/2] snap: try `remote-build` instead --- .github/workflows/snap.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.yml index 36ff726e8ab..954323420a5 100644 --- a/.github/workflows/snap.yml +++ b/.github/workflows/snap.yml @@ -29,10 +29,12 @@ jobs: fetch-depth: 0 # needed for version determination - name: Build and publish the snap - uses: canonical/actions/build-snap@multiarch + uses: canonical/actions/build-snap@remote-build with: architecture: ${{ matrix.architecture }} snapcraft-token: ${{ secrets.SNAPCRAFT_TOKEN }} + launchpad-credentials: ${{ secrets.LAUNCHPAD_CREDENTIALS }} + launchpad-accept-public-upload: true publish: ${{ github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name }} publish-channel: 22/edge/pr${{ github.event.number }} @@ -82,10 +84,12 @@ jobs: sed -i 's@- mir-libs.*$@\0/pr${{ github.event.number }}@' snap/snapcraft.yaml - name: Build and publish the snap - uses: canonical/actions/build-snap@multiarch + uses: canonical/actions/build-snap@remote-build with: architecture: ${{ matrix.architecture }} review-opts: ${{ matrix.review-opts }} snapcraft-token: ${{ secrets.SNAPCRAFT_TOKEN }} + launchpad-credentials: ${{ secrets.LAUNCHPAD_CREDENTIALS }} + launchpad-accept-public-upload: true publish: true publish-channel: ${{ matrix.track }}/edge/mir-pr${{ github.event.number }} From b00153e64b65106a4187a6e875eedc4b0a0bc0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz=20=28Saviq=29?= Date: Mon, 28 Aug 2023 09:37:49 +0200 Subject: [PATCH 2/2] ci: use snapcraft/edge for Miriway Otherwise the environment is b0rked: https://github.com/snapcore/snapcraft/pull/4216 --- .github/workflows/snap.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.yml index 954323420a5..66940cadfaa 100644 --- a/.github/workflows/snap.yml +++ b/.github/workflows/snap.yml @@ -70,6 +70,7 @@ jobs: - snap: Miriway/Miriway track: latest review-opts: --allow-classic + snapcraft-channel: edge steps: - name: Check out code @@ -93,3 +94,4 @@ jobs: launchpad-accept-public-upload: true publish: true publish-channel: ${{ matrix.track }}/edge/mir-pr${{ github.event.number }} + snapcraft-channel: ${{ matrix.snapcraft-channel || 'stable' }}