Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit 31b7c49

Browse files
Get snappy (#137)
* initial success build * added in snap package temporarily for testing * changed to classic snap * added snap release action * remove snap * changed grade to devmode, we're developing changed confinement * resized icon to square, added snippet to README
1 parent 086492d commit 31b7c49

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

.github/workflows/release_snap.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release - snap
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+
jobs:
10+
cargo_check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Build
15+
run: cargo build --verbose
16+
- name: Run tests
17+
run: make test-all
18+
- name: Check fmt
19+
run: cargo fmt -- --check
20+
21+
clippy_check:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v1
25+
- run: rustup component add clippy
26+
- uses: actions-rs/clippy-check@v1
27+
with:
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
args: --all-features
30+
31+
snap_release:
32+
depends_on: [cargo_check, clippy_check]
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: snapcore/action-build@v1
37+
id: build
38+
- uses: snapcore/action-publish@v1
39+
with:
40+
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
41+
snap: ${{ steps.build.outputs.snap }}
42+
release: edge

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ curl -s https://packagecloud.io/install/repositories/wasmcloud/core/script.rpm.s
2828
2929
sudo apt install wasmcloud wash
3030
```
31+
### Linux (snap)
32+
```
33+
sudo snap install wash --edge --devmode
34+
```
3135
### MacOS (brew)
3236
```
3337
brew tap wasmcloud/wasmcloud

snap/local/icon.png

13.1 KB
Loading

snap/snapcraft.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: wash
2+
base: core20 # the base snap is the execution environment for this snap
3+
version: '0.4.4'
4+
summary: WAsmcloud SHell - A multi-tool for wasmCloud development.
5+
icon: snap/local/icon.png
6+
description: |
7+
wash is a bundle of command line tools that, together, form a comprehensive CLI for wasmcloud development.
8+
Everything from generating signing keys to a fully interactive REPL environment is contained within the subcommands of wash.
9+
Our goal with wash is to encapsulate our tools into a single binary to make developing WebAssembly with wasmcloud painless and simple.
10+
grade: stable
11+
confinement: devmode
12+
apps:
13+
wash:
14+
command: bin/wash
15+
parts:
16+
wash:
17+
plugin: rust
18+
source: https://github.com/wasmCloud/wash.git
19+
build-packages:
20+
- libssl-dev
21+
- pkg-config
22+
- clang

0 commit comments

Comments
 (0)