Skip to content

Commit

Permalink
build: build arm64 binaries for Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Dec 12, 2021
1 parent 2e0022c commit 2097578
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
29 changes: 15 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
project_name: ramdisk
before:
hooks:
- go mod download
builds:
- main: ./cmd/ramdisk/ramdisk.go
env:
- CGO_ENABLED=0
- CGO_ENABLED=0
goos:
- linux
- darwin
ignore:
- goos: darwin
goarch: 386
archive:
replacements:
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: macOS
386: i386
amd64: x64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
brew:
name: ramdisk
description: Convenience wrapper for creating RAM disks.
homepage: https://github.com/mroth/ramdisk
github:
owner: mroth
name: homebrew-formulas
brews:
-
tap:
owner: mroth
name: homebrew-tap
description: Convenience wrapper for creating RAM disks.
homepage: https://github.com/mroth/ramdisk
skip_upload: false
changelog:
sort: asc
filters:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ To later remove do: `ramdisk destroy /dev/disk5`
## Installation

* 💾 Download a [precompiled binary](https://github.com/mroth/ramdisk/releases/).
* 🍺 Homebrew on macOS: `brew install mroth/formulas/ramdisk`
* 📦 Compile via Go toolchain: `go get github.com/mroth/ramdisk/cmd/ramdisk`
* 🍺 Homebrew on macOS: `brew install mroth/tap/ramdisk`
* 📦 Compile via Go toolchain: `go install github.com/mroth/ramdisk/cmd/ramdisk@latest`

## Platform Support

Expand Down

0 comments on commit 2097578

Please sign in to comment.