mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
* fix: correct HTTP error handling in gateway * refactor: migrate database and ORM to internal modules * feat: introduce taskfile build system for improved workflow management * refactor: update taskfiles to use relative paths * feat: add profile status field * refactor: move rendering logic to context package * fix: improve error handling in credentials retrieval * refactor: optimize HTTP request handling in Wasm environment * refactor: refactor config loading in motr command * chore: add process-compose for service management * chore: remove default task and update gum format command * fix: update project dependencies * refactor: improve code readability and maintainability * refactor: consolidate error handling components * refactor: update index handler to use new context package * refactor: consolidate database scripts and move to deploy directory * feat: Update flake.nix with development tools and environment configuration * fix: ignore flake.lock file * refactor: migrate build process to use taskfiles for improved modularity and maintainability * refactor: improve GatewayContext and reorganize handlers * refactor: Remove unused profile creation functions * (chore): templ generation * test: add test file for vaults.go * maintenance: remove defunct Discord server link * docs: update checks workflow documentation * test: remove obsolete vaults test file * refactor: move version bumping logic to release workflow
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
version: "3"
|
|
|
|
vars:
|
|
BINARY: sonrd
|
|
BUILD_FLAGS: -mod=readonly -trimpath
|
|
BUILD_TAGS: netgo,ledger
|
|
COMMIT:
|
|
sh: git rev-parse HEAD
|
|
VERSION:
|
|
sh: git describe --tags --always
|
|
DOPPLER_TOKEN:
|
|
sh: skate get DOPPLER_NETWORK
|
|
|
|
tasks:
|
|
build:
|
|
desc: Build the sonrd binary
|
|
cmds:
|
|
- >
|
|
go build
|
|
{{.BUILD_FLAGS}}
|
|
-tags "{{.BUILD_TAGS}}"
|
|
-ldflags "
|
|
-X github.com/cosmos/cosmos-sdk/version.Name=sonr
|
|
-X github.com/cosmos/cosmos-sdk/version.AppName=sonrd
|
|
-X github.com/cosmos/cosmos-sdk/version.Version={{.VERSION}}
|
|
-X github.com/cosmos/cosmos-sdk/version.Commit={{.COMMIT}}
|
|
-X github.com/cosmos/cosmos-sdk/version.BuildTags={{.BUILD_TAGS}}
|
|
"
|
|
-o ./build/{{.BINARY}}
|
|
./cmd/sonrd
|
|
env:
|
|
CGO_ENABLED: 1
|
|
GOARCH:
|
|
sh: go env GOARCH
|
|
GOOS:
|
|
sh: go env GOOS
|
|
|
|
install:
|
|
desc: Install sonrd
|
|
silent: true
|
|
cmds:
|
|
- gum spin --spinner dot --title "Installing sonr daemon..." -- make install
|
|
|
|
start:
|
|
desc: Start the sonr node
|
|
cmds:
|
|
- sh scripts/test_dop_node.sh
|
|
|