Skip to content

Commit 1dd4f56

Browse files
committed
core24
- workflow -snap builds - README update
1 parent befa133 commit 1dd4f56

File tree

4 files changed

+56
-6
lines changed

4 files changed

+56
-6
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Snap Builds
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [20.x]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- uses: snapcore/action-build@v1
20+
id: build
21+
22+
- uses: diddlesnaps/snapcraft-review-action@v1
23+
with:
24+
snap: ${{ steps.build.outputs.snap }}
25+
isClassic: 'false'
26+
# Plugs and Slots declarations to override default denial (requires store assertion to publish)
27+
# plugs: ./plug-declaration.json
28+
# slots: ./slot-declaration.json

README.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ SoftLayer API Python Client
1010
:target: https://coveralls.io/github/softlayer/softlayer-python?branch=master
1111
.. image:: https://snapcraft.io//slcli/badge.svg
1212
:target: https://snapcraft.io/slcli
13-
13+
.. image:: https://https://github.com/softlayer/softlayer-python/workflows/Snap%20Builds/badge.svg
14+
:target: https://github.com/softlayer/softlayer-python/actions?query=workflow:"Snap+Builds"
1415

1516
This library provides a simple Python client to interact with `SoftLayer's
1617
XML-RPC API <https://softlayer.github.io/reference/softlayerapi>`_.

snap/local/slcli.png

2.38 KB
Loading

snap/snapcraft.yaml

+26-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,32 @@ description: |
66
SLCLI documentation can be found here: https://softlayer-python.readthedocs.io/en/latest/
77
88
license: MIT
9-
10-
base: core22
9+
website: https://www.ibm.com/cloud
10+
source-code: https://github.com/softlayer/softlayer-python
11+
issues: https://github.com/softlayer/softlayer-python/issues
12+
contact: https://github.com/softlayer/softlayer-python
13+
icon: snap/local/slcli.png
14+
base: core24
1115
grade: stable
1216
confinement: strict
1317

18+
platforms:
19+
amd64:
20+
build-on: [amd64]
21+
build-for: [amd64]
22+
arm64:
23+
build-on: [arm64]
24+
build-for: [arm64]
25+
armhf:
26+
build-on: [armhf]
27+
build-for: [armhf]
28+
ppc64el:
29+
build-on: [ppc64el]
30+
build-for: [ppc64el]
31+
s390x:
32+
build-on: [s390x]
33+
build-for: [s390x]
34+
1435
apps:
1536
slcli:
1637
command: bin/slcli
@@ -25,10 +46,10 @@ parts:
2546
slcli:
2647
source: https://github.com/softlayer/softlayer-python
2748
source-type: git
28-
plugin: python
49+
plugin: python
2950
override-pull: |
30-
snapcraftctl pull
31-
snapcraftctl set-version "$(git describe --tags | sed 's/^v//')"
51+
craftctl default
52+
craftctl set version="$(git describe --tags | sed 's/^v//')"
3253
3354
build-packages:
3455
- python3

0 commit comments

Comments
 (0)