mirror of
https://github.com/danielmiessler/fabric.git
synced 2026-09-10 07:36:44 -04:00
CHANGES - switch Azure OpenAI config to openai-go azure helpers - require API key and base URL during configuration - default API version to 2024-05-01-preview when unspecified - trim and parse deployments input into clean slice - update dependencies to support azure client and authentication flow - add tests for configuration and default API version behavior - remove latest-tag boundary logic from changelog walker (revert to the v1.4.213 version) - simplify version assignment by matching commit messages directly
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
# Read the documentation at https://goreleaser.com
|
|
|
|
version: 2
|
|
|
|
project_name: fabric
|
|
before:
|
|
hooks:
|
|
# You may remove this if you don't use go modules.
|
|
- go mod tidy
|
|
# you may remove this if you don't need go generate
|
|
# - go generate ./...
|
|
|
|
builds:
|
|
- id: default
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- darwin
|
|
- linux
|
|
main: ./cmd/fabric
|
|
binary: fabric
|
|
- id: windows-garbled
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- windows
|
|
main: ./cmd/fabric
|
|
binary: fabric
|
|
tool: garble
|
|
# From https://github.com/eyevanovich/garble-goreleaser-example/blob/main/.goreleaser.yaml
|
|
# command is a single string.
|
|
command: "-tiny"
|
|
flags: [ "-seed=random", "build" ]
|
|
ldflags: [ "-s", "-w" ]
|
|
|
|
archives:
|
|
- formats: [tar.gz]
|
|
# this name template makes the OS and Arch compatible with the results of `uname`.
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- title .Os }}_
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
{{- else if eq .Arch "386" }}i386
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
# use zip for windows archives
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: [zip]
|