diff --git a/.github/workflows/test-snap-can-build.yml b/.github/workflows/test-snap-can-build.yml new file mode 100644 index 000000000..19a4086bb --- /dev/null +++ b/.github/workflows/test-snap-can-build.yml @@ -0,0 +1,28 @@ +name: Snap Builds + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v2 + + - uses: snapcore/action-build@v1 + id: build + + - uses: diddlesnaps/snapcraft-review-action@v1 + with: + snap: ${{ steps.build.outputs.snap }} + isClassic: 'false' + # Plugs and Slots declarations to override default denial (requires store assertion to publish) + # plugs: ./plug-declaration.json + # slots: ./slot-declaration.json diff --git a/README.rst b/README.rst index 39b0dfd4a..5f82bdd62 100644 --- a/README.rst +++ b/README.rst @@ -10,7 +10,8 @@ SoftLayer API Python Client :target: https://coveralls.io/github/softlayer/softlayer-python?branch=master .. image:: https://snapcraft.io//slcli/badge.svg :target: https://snapcraft.io/slcli - +.. image:: https://https://github.com/softlayer/softlayer-python/workflows/Snap%20Builds/badge.svg + :target: https://github.com/softlayer/softlayer-python/actions?query=workflow:"Snap+Builds" This library provides a simple Python client to interact with `SoftLayer's XML-RPC API `_. diff --git a/snap/local/slcli.png b/snap/local/slcli.png new file mode 100644 index 000000000..5e273f36e Binary files /dev/null and b/snap/local/slcli.png differ diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 4b78a2c9d..9a54221f0 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -6,11 +6,32 @@ description: | SLCLI documentation can be found here: https://softlayer-python.readthedocs.io/en/latest/ license: MIT - -base: core22 +website: https://www.ibm.com/cloud +source-code: https://github.com/softlayer/softlayer-python +issues: https://github.com/softlayer/softlayer-python/issues +contact: https://github.com/softlayer/softlayer-python +icon: snap/local/slcli.png +base: core24 grade: stable confinement: strict +platforms: + amd64: + build-on: [amd64] + build-for: [amd64] + arm64: + build-on: [arm64] + build-for: [arm64] + armhf: + build-on: [armhf] + build-for: [armhf] + ppc64el: + build-on: [ppc64el] + build-for: [ppc64el] + s390x: + build-on: [s390x] + build-for: [s390x] + apps: slcli: command: bin/slcli @@ -25,10 +46,10 @@ parts: slcli: source: https://github.com/softlayer/softlayer-python source-type: git - plugin: python + plugin: python override-pull: | - snapcraftctl pull - snapcraftctl set-version "$(git describe --tags | sed 's/^v//')" + craftctl default + craftctl set version="$(git describe --tags | sed 's/^v//')" build-packages: - python3