Skip to content

Commit

Permalink
build: 👷 add support for linux arm and arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
CRBroughton committed Nov 21, 2023
1 parent 7a05546 commit 0d2cdaa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-pans-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"forager": patch
---

Add support for linux arm and arm64
24 changes: 23 additions & 1 deletion taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vars:

tasks:
build:
deps: [clean, linux32, linux64, windows64, apple, applesilicon]
deps: [clean, linux32, linux64, linuxarm, linuxarm64, windows64, apple, applesilicon]

clean:
cmds:
Expand Down Expand Up @@ -33,6 +33,18 @@ tasks:
- cd db && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../build/forager-"{{.version}}"-linux
- cd build && zip forager-"{{.version}}"-linux.zip forager-"{{.version}}"-linux

buildlinuxarm:
deps: [front]
cmds:
- cd db && CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -o ../build/forager-"{{.version}}"-linuxarm
- cd build && zip forager-"{{.version}}"-linuxarm.zip forager-"{{.version}}"-linuxarm

buildlinuxarm64:
deps: [front]
cmds:
- cd db && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ../build/forager-"{{.version}}"-linuxarm64
- cd build && zip forager-"{{.version}}"-linuxarm64.zip forager-"{{.version}}"-linuxarm64

buildwindows64:
deps: [front]
cmds:
Expand Down Expand Up @@ -60,6 +72,16 @@ tasks:
deps: [buildlinux64]
cmds:
- cd build && rm -rf forager-"{{.version}}"-linux

linuxarm:
deps: [buildlinuxarm]
cmds:
- cd build && rm -rf forager-"{{.version}}"-linuxarm

linuxarm64:
deps: [buildlinuxarm64]
cmds:
- cd build && rm -rf forager-"{{.version}}"-linuxarm64

windows64:
deps: [buildwindows64]
Expand Down

0 comments on commit 0d2cdaa

Please sign in to comment.