mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
# https://taskfile.dev
|
|
|
|
version: '3'
|
|
|
|
dotenv:
|
|
- '.env'
|
|
|
|
vars:
|
|
VERSION:
|
|
sh: cat config/version.go | grep -A 1 "func GetVersion() \[\]byte {" | grep -Eo '0x[0-9a-fA-F]+' | xargs printf "%d.%d.%d"
|
|
GIT_REPO:
|
|
sh: git config --get remote.origin.url | sed 's/\.git$//'
|
|
GIT_BRANCH:
|
|
sh: git rev-parse --abbrev-ref HEAD
|
|
GIT_COMMIT:
|
|
sh: git log -1 --format=%h
|
|
MAX_KEY_ID: 17
|
|
|
|
tasks:
|
|
status:
|
|
desc: Display configuration info.
|
|
cmds:
|
|
- echo -n "Image name:" && echo " ${QUILIBRIUM_IMAGE_NAME:-quilibrium}"
|
|
- echo -n "Version :" && echo " {{.VERSION}}"
|
|
- echo -n "Repo :" && echo " {{.GIT_REPO}}"
|
|
- echo -n "Branch :" && echo " {{.GIT_BRANCH}}"
|
|
- echo -n "Commit :" && echo " {{.GIT_COMMIT}}"
|
|
- echo -n "Max Key ID:" && echo " {{.MAX_KEY_ID}}"
|
|
silent: true
|
|
|
|
build_node_arm64_macos:
|
|
desc: Build the Quilibrium node binary for MacOS ARM. Assumes it's ran from the same platform. Outputs to node/build.
|
|
cmds:
|
|
- vdf/generate.sh
|
|
- bls48581/generate.sh
|
|
- verenc/generate.sh
|
|
- bulletproofs/generate.sh
|
|
- ferret/generate.sh
|
|
- channel/generate.sh
|
|
- rpm/generate.sh
|
|
- node/build.sh -o build/arm64_macos/node
|
|
|
|
build_qclient_arm64_macos:
|
|
desc: Build the QClient node binary for MacOS ARM. Outputs to client/build
|
|
cmds:
|
|
- vdf/generate.sh
|
|
- bls48581/generate.sh
|
|
- verenc/generate.sh
|
|
- bulletproofs/generate.sh
|
|
- ferret/generate.sh
|
|
- channel/generate.sh
|
|
- rpm/generate.sh
|
|
- client/build.sh -o build/arm64_macos/qclient
|
|
|