Skip to content

Commit

Permalink
Merge pull request #2185 from kz6fittycent/master
Browse files Browse the repository at this point in the history
Snap core24 upgrade
  • Loading branch information
allmightyspiff authored Sep 30, 2024
2 parents befa133 + 1dd4f56 commit 4e8d4fd
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-snap-can-build.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://softlayer.github.io/reference/softlayerapi>`_.
Expand Down
Binary file added snap/local/slcli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 26 additions & 5 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4e8d4fd

Please sign in to comment.