Skip to content

Commit

Permalink
goreleaser conf for darwin os
Browse files Browse the repository at this point in the history
  • Loading branch information
upvest-mike committed Nov 27, 2024
1 parent 0104bc7 commit ed09126
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build a release with Goreleaser

on:
push:
tags:
- "v*"
on: push
# push:
# tags:
# - "v*"

permissions:
contents: write
Expand Down
17 changes: 15 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
version: 2
builds:
- id: default
- id: darwin_amd64
goos:
- darwin
goarch:
- amd64
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`.
ldflags:
- -s -w -X github.com/upvestco/httpsignature-proxy/cmd.version={{.Version}} -X github.com/upvestco/httpsignature-proxy/cmd.commit={{.Commit}} -X github.com/upvestco/httpsignature-proxy/cmd.date={{.Date}} -X github.com/upvestco/httpsignature-proxy/cmd.builtBy=goreleaser
env:
- CGO_ENABLED=1
- GO111MODULE=on
- GOOS=linux
- GOARCH=amd64
mod_timestamp: "{{ .CommitTimestamp }}"
- id: default
goos:
- linux
- windows
goarch:
Expand All @@ -12,7 +25,7 @@ builds:
ldflags:
- -s -w -X github.com/upvestco/httpsignature-proxy/cmd.version={{.Version}} -X github.com/upvestco/httpsignature-proxy/cmd.commit={{.Commit}} -X github.com/upvestco/httpsignature-proxy/cmd.date={{.Date}} -X github.com/upvestco/httpsignature-proxy/cmd.builtBy=goreleaser
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
- GO111MODULE=on
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
Expand Down

0 comments on commit ed09126

Please sign in to comment.