CI: Disable all builds except amd64 for testing.

This commit is contained in:
Martin Dosch 2022-07-14 10:40:43 +02:00
parent 982d20f576
commit 711d11b7ab
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

View File

@ -39,19 +39,19 @@ compile:
script:
- echo "${CI_JOB_ID}" > CI_JOB_ID.txt
- env GOOS=linux GOARCH=amd64 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/linux-amd64/go-sendxmpp
- env GOOS=linux GOARCH=arm64 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/linux-arm64/go-sendxmpp
- env GOOS=linux GOARCH=386 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/linux-386/go-sendxmpp
- env GOOS=linux GOARCH=arm go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/linux-arm/go-sendxmpp
- env GOOS=windows GOARCH=386 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/win386/go-sendxmpp.exe
- env GOOS=windows GOARCH=amd64 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/win64/go-sendxmpp.exe
# - env GOOS=linux GOARCH=arm64 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/linux-arm64/go-sendxmpp
# - env GOOS=linux GOARCH=386 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/linux-386/go-sendxmpp
# - env GOOS=linux GOARCH=arm go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/linux-arm/go-sendxmpp
# - env GOOS=windows GOARCH=386 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/win386/go-sendxmpp.exe
# - env GOOS=windows GOARCH=amd64 go build -buildmode=pie -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/win64/go-sendxmpp.exe
artifacts:
paths:
- linux-amd64/go-sendxmpp
- linux-arm64/go-sendxmpp
- linux-386/go-sendxmpp
- linux-arm/go-sendxmpp
- win386/go-sendxmpp.exe
- win64/go-sendxmpp.exe
# - linux-arm64/go-sendxmpp
# - linux-386/go-sendxmpp
# - linux-arm/go-sendxmpp
# - win386/go-sendxmpp.exe
# - win64/go-sendxmpp.exe
- CI_JOB_ID.txt
release: