Skip to content

Commit 4b55fa0

Browse files
committed
Add support for arm and arm64
1 parent 0722fea commit 4b55fa0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ GOBUILD = go build -ldflags '-w'
55
ALL = \
66
$(foreach arch,64 32,\
77
$(foreach suffix,linux osx win.exe,\
8-
build/gr-$(arch)-$(suffix)))
8+
build/gr-$(arch)-$(suffix))) \
9+
$(foreach arch,arm arm64,\
10+
build/go-crond-$(arch)-linux)
911

1012
all: test build
1113

@@ -30,7 +32,15 @@ build/gr-32-%: $(SOURCE)
3032
@mkdir -p $(@D)
3133
CGO_ENABLED=0 GOOS=$(firstword $($*) $*) GOARCH=386 $(GOBUILD) -o $@
3234

33-
release: $(ALL)
35+
build/go-crond-arm-linux: $(SOURCE)
36+
@mkdir -p $(@D)
37+
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 $(GOBUILD) -o $@
38+
39+
build/go-crond-arm64-linux: $(SOURCE)
40+
@mkdir -p $(@D)
41+
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(GOBUILD) -o $@
42+
43+
release: build
3444
github-release release -u webdevops -r go-replace -t "$(TAG)" -n "$(TAG)" --description "$(TAG)"
3545
@for x in $(ALL); do \
3646
echo "Uploading $$x" && \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Inspired by https://github.com/piranha/goreplace
2121
- Can store file as other filename (eg. `go-replace ./configuration.tmpl:./configuration.conf`)
2222
- Can replace files in directory (`--path`) and offers file pattern matching functions (`--path-pattern` and `--path-regex`)
2323
- Can read also stdin for search&replace or template handling
24+
- Supports Linux, MacOS, Windows and ARM/ARM64 (Rasbperry Pi and others)
2425

2526
## Usage
2627

0 commit comments

Comments
 (0)