Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix USB in macOS releases #243

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ permissions:
jobs:
goreleaser:
runs-on: ubuntu-latest
container:
image: ghcr.io/goreleaser/goreleaser-cross:v1.22.3
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
55 changes: 49 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,67 @@ before:
- go mod tidy

universal_binaries:
- replace: true
- id: oasis-darwin-universal
ids:
- oasis-darwin-amd64
- oasis-darwin-arm64
replace: true
name_template: oasis

env:
- CGO_ENABLED=1

builds:
- binary: oasis
- &build-common
id: oasis-linux-amd64
binary: oasis
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
goos:
- linux
goarch:
- amd64
flags:
- -trimpath
ldflags:
- -buildid=
- "{{.Env.GOLDFLAGS_VERSION}}"
targets:
- linux_amd64
- darwin_amd64
- darwin_arm64
- <<: *build-common
id: oasis-linux-arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
goos:
- linux
goarch:
- arm64
- <<: *build-common
id: oasis-darwin-amd64
env:
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
goarch:
- amd64
- <<: *build-common
id: oasis-darwin-arm64
env:
- CC=oa64-clang
- CXX=oa64-clang++
goos:
- darwin
goarch:
- arm64

archives:
- name_template: "{{replace .ProjectName \" \" \"_\" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}"
wrap_in_directory: true
builds:
- oasis-linux-amd64
- oasis-linux-arm64
- oasis-darwin-universal

checksum:
name_template: SHA256SUMS-{{.Version}}.txt
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ lint: $(lint-targets)

# Release.
release-build:
@goreleaser release --rm-dist
@goreleaser release --clean

# Test.
test-targets := test-unit
Expand Down
Loading