Skip to content

Commit

Permalink
Merge pull request #176 from Shopify/fix-gem-build
Browse files Browse the repository at this point in the history
Makefile: update arm64 paths + v1.5.3 prepare
  • Loading branch information
thepwagner authored Nov 6, 2024
2 parents 0292534 + 63c995e commit 858fad8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ default: all
all: setup gem deb
binaries: \
dist/ejson_linux_amd64_v1/ejson \
dist/ejson_linux_arm64/ejson \
dist/ejson_linux_arm64_v8.0/ejson \
dist/ejson_darwin_amd64_v1/ejson \
dist/ejson_darwin_arm64/ejson \
dist/ejson_darwin_arm64_v8.0/ejson \
dist/ejson_freebsd_amd64_v1/ejson \
dist/ejson_windows_arm64/ejson.exe
dist/ejson_windows_arm64_v8.0/ejson.exe
gem: $(GEM)
deb: $(AMD64_DEB) $(ARM64_DEB)

dist/ejson_linux_amd64_v1/ejson: $(GOFILES)
goreleaser build --snapshot --clean
dist/ejson_linux_arm64/ejson: $(GOFILES)
goreleaser build --snapshot --clean
goreleaser build --clean
dist/ejson_linux_arm64_v8.0/ejson: $(GOFILES)
goreleaser build --clean
dist/ejson_darwin_amd64_v1/ejson: $(GOFILES)
goreleaser build --snapshot --clean
dist/ejson_darwin_arm64/ejson: $(GOFILES)
goreleaser build --snapshot --clean
goreleaser build --clean
dist/ejson_darwin_arm64_v8.0/ejson: $(GOFILES)
goreleaser build --clean
dist/ejson_freebsd_amd64_v1/ejson: $(GOFILES)
goreleaser build --snapshot --clean
dist/ejson_windows_arm64/ejson.exe: $(GOFILES)
goreleaser build --snapshot --clean
goreleaser build --clean
dist/ejson_windows_arm64_v8.0/ejson.exe: $(GOFILES)
goreleaser build --clean

$(GEM): rubygem/$(NAME)-$(VERSION).gem
mkdir -p $(@D)
Expand All @@ -60,7 +60,7 @@ rubygem/build/darwin-amd64/ejson: dist/ejson_darwin_amd64_v1/ejson
mkdir -p $(@D)
cp -a "$<" "$@"

rubygem/build/darwin-arm64/ejson: dist/ejson_darwin_arm64/ejson
rubygem/build/darwin-arm64/ejson: dist/ejson_darwin_arm64_v8.0/ejson
mkdir -p $(@D)
cp -a "$<" "$@"

Expand All @@ -72,11 +72,11 @@ rubygem/build/linux-amd64/ejson: dist/ejson_linux_amd64_v1/ejson
mkdir -p $(@D)
cp -a "$<" "$@"

rubygem/build/linux-arm64/ejson: dist/ejson_linux_arm64/ejson
rubygem/build/linux-arm64/ejson: dist/ejson_linux_arm64_v8.0/ejson
mkdir -p $(@D)
cp -a "$<" "$@"

rubygem/build/windows-amd64/ejson.exe: dist/ejson_windows_arm64/ejson.exe
rubygem/build/windows-amd64/ejson.exe: dist/ejson_windows_amd64_v1/ejson.exe
mkdir -p $(@D)
cp -a "$<" "$@"

Expand All @@ -85,10 +85,10 @@ rubygem/lib/$(NAME)/version.rb: VERSION
printf '%b' 'module $(RUBY_MODULE)\n VERSION = "$(VERSION)"\nend\n' > $@

$(AMD64_DEB): dist/ejson_linux_amd64_v1/ejson
goreleaser release --clean --snapshot --skip publish
goreleaser release --clean --skip publish

$(ARM64_DEB): dist/ejson_linux_arm64/ejson
goreleaser release --clean --snapshot --skip publish
$(ARM64_DEB): dist/ejson_linux_arm64_v8.0/ejson
goreleaser release --clean --skip publish

clean:
rm -rf build dist pkg rubygem/{LICENSE.txt,lib/ejson/version.rb,build,*.gem}
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.5.3

0 comments on commit 858fad8

Please sign in to comment.