mirror of
https://gitlab.com/pnx-tools/dns-updater.git
synced 2026-06-16 05:54:56 +02:00
22 lines
517 B
YAML
22 lines
517 B
YAML
|
|
image: golang:1.23
|
|
|
|
stages:
|
|
- test
|
|
- build
|
|
|
|
unit-test:
|
|
stage: test
|
|
script:
|
|
- go test -v ./...
|
|
|
|
compile:
|
|
stage: build
|
|
script:
|
|
- mkdir -p build
|
|
- GOOS=linux GOARCH=amd64 go build -o build/dnsupdater-linux-amd64 cmd/dnsupdater/main.go
|
|
- GOOS=linux GOARCH=mips GOMIPS=softfloat go build -o build/dnsupdater-linux-mips cmd/dnsupdater/main.go
|
|
- GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -o build/dnsupdater-linux-mipsle cmd/dnsupdater/main.go
|
|
artifacts:
|
|
paths:
|
|
- build
|