diff --git a/.changeset/forty-pans-wonder.md b/.changeset/forty-pans-wonder.md new file mode 100644 index 0000000..c425756 --- /dev/null +++ b/.changeset/forty-pans-wonder.md @@ -0,0 +1,5 @@ +--- +"forager": patch +--- + +Add support for linux arm and arm64 diff --git a/taskfile.yml b/taskfile.yml index 21fe6ae..e6d5acf 100644 --- a/taskfile.yml +++ b/taskfile.yml @@ -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: @@ -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: @@ -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]