fixup! fixup! perf: build frontend once on runner instead of in Docker

This commit is contained in:
2026-01-04 01:08:55 +00:00
parent 1f781f6620
commit 9f4d8fc777
+6 -17
View File
@@ -7,11 +7,8 @@ project_name: gohoarder
before: before:
hooks: hooks:
- go mod tidy - go mod tidy
# Download and setup Zig for cross-compilation # Download and setup Zig for cross-compilation (Linux only)
- wget -q https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz -O /tmp/zig.tar.xz - bash -c 'if [ "$(uname -s)" = "Linux" ]; then wget -q https://ziglang.org/download/0.16.0/zig-linux-x86_64-0.16.0.tar.xz -O /tmp/zig.tar.xz && tar -xf /tmp/zig.tar.xz -C /tmp && sudo cp -r /tmp/zig-linux-x86_64-0.16.0 /usr/local/zig && sudo ln -sf /usr/local/zig/zig /usr/local/bin/zig; fi'
- tar -xf /tmp/zig.tar.xz -C /tmp
- sudo cp -r /tmp/zig-linux-x86_64-0.13.0 /usr/local/zig
- sudo ln -sf /usr/local/zig/zig /usr/local/bin/zig
# Build configuration # Build configuration
# All binaries built using Zig for consistent cross-compilation # All binaries built using Zig for consistent cross-compilation
@@ -42,6 +39,7 @@ builds:
- goos: darwin - goos: darwin
goarch: amd64 goarch: amd64
overrides: overrides:
# Use Zig only for Linux cross-compilation
- goos: linux - goos: linux
goarch: amd64 goarch: amd64
env: env:
@@ -54,12 +52,7 @@ builds:
- CGO_ENABLED=1 - CGO_ENABLED=1
- CC=zig cc -target aarch64-linux-musl - CC=zig cc -target aarch64-linux-musl
- CXX=zig c++ -target aarch64-linux-musl - CXX=zig c++ -target aarch64-linux-musl
- goos: darwin # darwin/arm64 builds natively on macOS runner (no Zig)
goarch: arm64
env:
- CGO_ENABLED=1
- CC=zig cc -target aarch64-macos-none
- CXX=zig c++ -target aarch64-macos-none
- id: migrate - id: migrate
main: ./cmd/migrate main: ./cmd/migrate
@@ -85,6 +78,7 @@ builds:
- goos: darwin - goos: darwin
goarch: amd64 goarch: amd64
overrides: overrides:
# Use Zig only for Linux cross-compilation
- goos: linux - goos: linux
goarch: amd64 goarch: amd64
env: env:
@@ -97,12 +91,7 @@ builds:
- CGO_ENABLED=1 - CGO_ENABLED=1
- CC=zig cc -target aarch64-linux-musl - CC=zig cc -target aarch64-linux-musl
- CXX=zig c++ -target aarch64-linux-musl - CXX=zig c++ -target aarch64-linux-musl
- goos: darwin # darwin/arm64 builds natively on macOS runner (no Zig)
goarch: arm64
env:
- CGO_ENABLED=1
- CC=zig cc -target aarch64-macos-none
- CXX=zig c++ -target aarch64-macos-none
# Archives for releases # Archives for releases
archives: archives: