diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b07cd1..d900e88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: needs: unit-tests uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v4 with: + charmcraft-snap-channel: 2.x/stable artifact-name: charm-packed @@ -93,7 +94,7 @@ jobs: env: CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }} run: | - sudo snap install charmcraft --classic + sudo snap install charmcraft --channel 2.x/stable --classic charmcraft upload ${{ steps.download.outputs.download-path }}/*.charm \ --name $CHARM_NAME \ --release ${{ needs.channel.outputs.test }} @@ -143,7 +144,7 @@ jobs: - name: Install Juju run: | - sudo snap install juju --channel 3.3/beta + sudo snap install juju --channel 3.6/candidate - name: Bootstrap on LXD if: matrix.cloud == 'lxd' @@ -179,7 +180,7 @@ jobs: steps: - name: Install Charmcraft run: | - sudo snap install charmcraft --classic + sudo snap install charmcraft --channel 2.x/stable --classic - name: Get uploaded revision id: revision diff --git a/charmcraft.yaml b/charmcraft.yaml index c8f0a13..88df105 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -2,23 +2,32 @@ type: charm parts: charm: charm-python-packages: [setuptools,markdown] + build-packages: + - cargo bases: - build-on: - name: ubuntu channel: "22.04" architectures: ["amd64"] run-on: + - name: ubuntu + channel: "24.04" + architectures: + - amd64 + - arm64 + - s390x + - ppc64el - name: ubuntu channel: "22.04" architectures: - amd64 - - aarch64 - arm64 - s390x + - ppc64el - name: ubuntu channel: "20.04" architectures: - amd64 - - aarch64 - arm64 - s390x + - ppc64el