Skip to content

Commit

Permalink
refactor: use YAML anchors to reduce boilerplate in .goreleaser.yaml (
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas authored Nov 1, 2024
1 parent 6223b89 commit 61731fd
Showing 1 changed file with 6 additions and 45 deletions.
51 changes: 6 additions & 45 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
builds:
- id: ftl
- &settings
id: ftl
main: ./frontend/cli
binary: ftl
env:
Expand All @@ -16,59 +17,19 @@ builds:
- id: ftl-language-go
main: ./go-runtime/cmd/ftl-language-go
binary: ftl-language-go
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- darwin
flags: -trimpath
ldflags: -s -w -buildid= -X github.com/TBD54566975/ftl.Version={{.Version}} -X github.com/TBD54566975/ftl.Timestamp={{ .CommitTimestamp }}
tags: [release]
<<: *settings
- id: ftl-language-java
main: ./jvm-runtime/cmd/ftl-language-java
binary: ftl-language-java
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- darwin
flags: -trimpath
ldflags: -s -w -buildid= -X github.com/TBD54566975/ftl.Version={{.Version}} -X github.com/TBD54566975/ftl.Timestamp={{ .CommitTimestamp }}
tags: [release]
<<: *settings
- id: ftl-language-kotlin
main: ./jvm-runtime/cmd/ftl-language-kotlin
binary: ftl-language-kotlin
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- darwin
flags: -trimpath
ldflags: -s -w -buildid= -X github.com/TBD54566975/ftl.Version={{.Version}} -X github.com/TBD54566975/ftl.Timestamp={{ .CommitTimestamp }}
tags: [release]
<<: *settings
- id: ftl-language-python
main: ./python-runtime/cmd/ftl-language-python
binary: ftl-language-python
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- darwin
flags: -trimpath
ldflags: -s -w -buildid= -X github.com/TBD54566975/ftl.Version={{.Version}} -X github.com/TBD54566975/ftl.Timestamp={{ .CommitTimestamp }}
tags: [release]
<<: *settings

archives:
- format: tar.gz
Expand Down

0 comments on commit 61731fd

Please sign in to comment.