Skip to content

Commit 2564fda

Browse files
committed
fix: drop arm6hf, correct arch names for deb/rpm packages
Targets: amd64, armhf (ARMv7 hard-float), arm64 only. arm6hf (armel/soft-float) removed from build:all-arch, package:all and docker:build:multi. Adds missing package:rpm:linux-arm7hf (NFPM_ARCH=armv7hl). Docker buildx platforms: linux/amd64,linux/arm/v7,linux/arm64. https://claude.ai/code/session_01GwPe5tCsib8gdiU7UNfH1N
1 parent 54a84e6 commit 2564fda

1 file changed

Lines changed: 15 additions & 29 deletions

File tree

Taskfile.yml

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,6 @@ tasks:
145145
- go build -ldflags="{{.LDFLAGS}}" -o dist/odio-api-linux-amd64 .
146146
- echo "✓ dist/odio-api-linux-amd64 ({{.VERSION}})"
147147

148-
build:linux-arm6hf:
149-
desc: Cross-compile for Linux armv6hf (RPi Zero/1)
150-
deps: [css]
151-
env:
152-
GOOS: linux
153-
GOARCH: arm
154-
GOARM: "6"
155-
CGO_ENABLED: "0"
156-
cmds:
157-
- mkdir -p dist
158-
- go build -ldflags="{{.LDFLAGS}}" -o dist/odio-api-linux-arm6hf .
159-
- echo "✓ dist/odio-api-linux-arm6hf ({{.VERSION}})"
160-
161148
build:linux-arm7hf:
162149
desc: Cross-compile for Linux armv7hf (RPi 2/3 32-bit)
163150
deps: [css]
@@ -187,7 +174,6 @@ tasks:
187174
desc: Cross-compile for all supported architectures
188175
deps:
189176
- build:linux-amd64
190-
- build:linux-arm6hf
191177
- build:linux-arm7hf
192178
- build:linux-arm64
193179

@@ -203,18 +189,6 @@ tasks:
203189
- nfpm package --config nfpm.yaml --packager deb --target dist/
204190
- echo "✓ .deb amd64 ready in dist/"
205191

206-
package:deb:linux-arm6hf:
207-
desc: Build .deb package for armv6hf (RPi Zero/1)
208-
deps: [build:linux-arm6hf]
209-
env:
210-
VERSION: "{{.VERSION}}"
211-
NFPM_ARCH: armel
212-
BINARY_PATH: dist/odio-api-linux-arm6hf
213-
cmds:
214-
- mkdir -p dist
215-
- nfpm package --config nfpm.yaml --packager deb --target dist/
216-
- echo "✓ .deb armel ready in dist/"
217-
218192
package:deb:linux-arm7hf:
219193
desc: Build .deb package for armv7hf (RPi 2/3 32-bit)
220194
deps: [build:linux-arm7hf]
@@ -251,6 +225,18 @@ tasks:
251225
- nfpm package --config nfpm.yaml --packager rpm --target dist/
252226
- echo "✓ .rpm x86_64 ready in dist/"
253227

228+
package:rpm:linux-arm7hf:
229+
desc: Build .rpm package for armv7hf
230+
deps: [build:linux-arm7hf]
231+
env:
232+
VERSION: "{{.VERSION}}"
233+
NFPM_ARCH: armv7hl
234+
BINARY_PATH: dist/odio-api-linux-arm7hf
235+
cmds:
236+
- mkdir -p dist
237+
- nfpm package --config nfpm.yaml --packager rpm --target dist/
238+
- echo "✓ .rpm armv7hl ready in dist/"
239+
254240
package:rpm:linux-arm64:
255241
desc: Build .rpm package for arm64
256242
deps: [build:linux-arm64]
@@ -267,10 +253,10 @@ tasks:
267253
desc: Build all deb and rpm packages for all architectures
268254
deps:
269255
- package:deb:linux-amd64
270-
- package:deb:linux-arm6hf
271256
- package:deb:linux-arm7hf
272257
- package:deb:linux-arm64
273258
- package:rpm:linux-amd64
259+
- package:rpm:linux-arm7hf
274260
- package:rpm:linux-arm64
275261

276262
docker:build:
@@ -280,11 +266,11 @@ tasks:
280266
- echo "✓ Image odio-api:{{.VERSION}} built"
281267

282268
docker:build:multi:
283-
desc: Build and push multi-arch Docker image (amd64, arm/v6, arm/v7, arm64)
269+
desc: Build and push multi-arch Docker image (amd64, arm/v7, arm64)
284270
cmds:
285271
- |
286272
docker buildx build \
287-
--platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \
273+
--platform linux/amd64,linux/arm/v7,linux/arm64 \
288274
--build-arg VERSION={{.VERSION}} \
289275
-t ghcr.io/b0bbywan/go-odio-api:{{.VERSION}} \
290276
-t ghcr.io/b0bbywan/go-odio-api:latest \

0 commit comments

Comments
 (0)