Skip to content

Commit

Permalink
feat(v2): Add moon (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed May 12, 2023
1 parent 2a4fb7f commit 6422e6f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 65 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ sdk/sdks
sqlstorage.test
ledger.test
antlr-*-complete.jar
<<<<<<< HEAD
go.work
go.work.sum

=======
ledger
>>>>>>> 28ebc2dab (feat(v2): Add moon (#252))
benchs
28 changes: 0 additions & 28 deletions .golangci.yml

This file was deleted.

47 changes: 10 additions & 37 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,32 @@
project_name: ledger
monorepo:
tag_prefix: components/ledger/
dir: ./components/ledger/
dir: ./

builds:
- binary: ledger
id: ledger_windows
id: ledger
ldflags:
- -X github.com/ledger/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/ledger/ledger/cmd.Version={{ .Version }}
- -X github.com/ledger/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/ledger/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
- binary: ledger
id: ledger_linux
ldflags:
- -X github.com/ledger/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/ledger/ledger/cmd.Version={{ .Version }}
- -X github.com/ledger/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/ledger/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
- -X github.com/formancehq/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/formancehq/ledger/cmd.Version={{ .Version }}
- -X github.com/formancehq/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/formancehq/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
- -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- windows
- linux
goarch:
- amd64
- arm64
- binary: ledger
id: ledger_darwin
ldflags:
- -X github.com/ledger/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/ledger/ledger/cmd.Version={{ .Version }}
- -X github.com/ledger/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/ledger/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
- -s
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
- arm64


archives:
- id: "ledger"
builds:
- ledger_linux
- ledger_windows
- ledger_darwin
- ledger
format: tar.gz
format_overrides:
- goos: windows
Expand Down Expand Up @@ -108,7 +81,7 @@ nfpms:
package_name: ledger
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- ledger_linux
- ledger
homepage: https://formance.com
maintainer: Maxence Maireaux <[email protected]>
formats:
Expand Down
8 changes: 8 additions & 0 deletions moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: 'application'
language: 'go'
dependsOn:
- 'go-libs'
tasks:
build:
command: 'go build ./'
platform: 'system'

0 comments on commit 6422e6f

Please sign in to comment.