feat: кросс-компиляция linux/windows/darwin × amd64/arm64
All checks were successful
CI / test (push) Successful in 35s
CI / build-and-package (amd64, darwin) (push) Successful in 1m7s
CI / build-and-package (amd64, linux) (push) Successful in 34s
CI / build-and-package (amd64, windows) (push) Successful in 1m9s
CI / build-and-package (arm64, darwin) (push) Successful in 1m11s
CI / build-and-package (arm64, linux) (push) Successful in 1m17s

This commit is contained in:
Hermes
2026-08-15 11:12:14 +05:00
parent a24077f37f
commit 3298bbcf8a
2 changed files with 27 additions and 12 deletions

View File

@@ -35,4 +35,6 @@ bench:
cross:
GOOS=linux GOARCH=amd64 $(GO) build $(GOFLAGS) -o $(APP)-linux-amd64 $(CMD_DIR)
GOOS=linux GOARCH=arm64 $(GO) build $(GOFLAGS) -o $(APP)-linux-arm64 $(CMD_DIR)
GOOS=darwin GOARCH=amd64 $(GO) build $(GOFLAGS) -o $(APP)-darwin-amd64 $(CMD_DIR)
GOOS=darwin GOARCH=amd64 $(GO) build $(GOFLAGS) -o $(APP)-darwin-amd64 $(CMD_DIR)
GOOS=darwin GOARCH=arm64 $(GO) build $(GOFLAGS) -o $(APP)-darwin-arm64 $(CMD_DIR)
GOOS=windows GOARCH=amd64 $(GO) build $(GOFLAGS) -o $(APP)-windows-amd64.exe $(CMD_DIR)