mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
ci: add windows/amd64 build
This commit is contained in:
parent
a79c249688
commit
68f8d4d372
1 changed files with 11 additions and 1 deletions
|
@ -39,7 +39,7 @@ frontend:
|
||||||
- export MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | awk '{ print $2 }')
|
- export MAUTRIX_VERSION=$(cat go.mod | grep 'maunium.net/go/mautrix ' | awk '{ print $2 }')
|
||||||
- export GO_LDFLAGS="-s -w -linkmode external -extldflags -static -X go.mau.fi/gomuks/version.Tag=$CI_COMMIT_TAG -X go.mau.fi/gomuks/version.Commit=$CI_COMMIT_SHA -X 'go.mau.fi/gomuks/version.BuildTime=`date -Iseconds`' -X 'maunium.net/go/mautrix.GoModVersion=$MAUTRIX_VERSION'"
|
- export GO_LDFLAGS="-s -w -linkmode external -extldflags -static -X go.mau.fi/gomuks/version.Tag=$CI_COMMIT_TAG -X go.mau.fi/gomuks/version.Commit=$CI_COMMIT_SHA -X 'go.mau.fi/gomuks/version.BuildTime=`date -Iseconds`' -X 'maunium.net/go/mautrix.GoModVersion=$MAUTRIX_VERSION'"
|
||||||
script:
|
script:
|
||||||
- go build -ldflags "$GO_LDFLAGS" -o gomuks ./cmd/gomuks
|
- go build -ldflags "$GO_LDFLAGS" ./cmd/gomuks
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- gomuks
|
- gomuks
|
||||||
|
@ -81,6 +81,16 @@ linux/arm64:
|
||||||
- linux
|
- linux
|
||||||
- arm64
|
- arm64
|
||||||
|
|
||||||
|
windows/amd64:
|
||||||
|
<<: *build-linux
|
||||||
|
image: dock.mau.dev/tulir/gomuks-build-docker:windows-amd64
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- gomuks.exe
|
||||||
|
tags:
|
||||||
|
- linux
|
||||||
|
- amd64
|
||||||
|
|
||||||
macos/arm64:
|
macos/arm64:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Reference in a new issue