f23c94cac5
* add workflow * branches: - snap_addition * Add snap package build workflow * Add snap package build master, staging * snap version from Cargo.toml * Seems like staging branch should have grade: devel quality level * Set snap grade based on branch * add multi arch * Update snap.yaml * snap: use arm platform for arm build * snap: multi platform ci build --------- Co-authored-by: ardocrat <ardocrat@gri.mw>
41 lines
784 B
YAML
41 lines
784 B
YAML
name: grin
|
|
adopt-info: grin
|
|
summary: Minimal implementation of the Mimblewimble protocol
|
|
description: |
|
|
https://grin.mw/
|
|
|
|
confinement: strict
|
|
grade: SNAP_GRADE
|
|
base: core22
|
|
architectures:
|
|
- build-on: [arm64]
|
|
build-for: [arm64]
|
|
- build-on: [amd64]
|
|
build-for: [amd64]
|
|
|
|
parts:
|
|
grin:
|
|
plugin: rust
|
|
source: .
|
|
override-pull: |
|
|
craftctl default
|
|
craftctl set version="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n 1)"
|
|
build-packages:
|
|
- build-essential
|
|
- clang
|
|
- cmake
|
|
- libncurses5-dev
|
|
- libncursesw5-dev
|
|
- libssl-dev
|
|
- llvm
|
|
- pkg-config
|
|
- zlib1g-dev
|
|
|
|
apps:
|
|
grin:
|
|
environment:
|
|
LC_ALL: C.UTF-8
|
|
LANG: C.UTF-8
|
|
command: bin/grin
|
|
plugs: [network, network-bind]
|