Clone down upstream modules before building.

This commit is contained in:
Nick Barrett 2021-09-16 10:17:13 -04:00
parent 6fb58efe17
commit 053725abbc
No known key found for this signature in database
GPG Key ID: 31F23F2CF354937B

View File

@ -13,6 +13,8 @@ stages:
- export GOPATH="$CI_PROJECT_DIR/.cache" - export GOPATH="$CI_PROJECT_DIR/.cache"
- export GOCACHE="$CI_PROJECT_DIR/.cache/build" - export GOCACHE="$CI_PROJECT_DIR/.cache/build"
- export GO_LDFLAGS="-linkmode external -extldflags -static -X main.Tag=$CI_COMMIT_TAG -X main.Commit=$CI_COMMIT_SHA -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'" - export GO_LDFLAGS="-linkmode external -extldflags -static -X main.Tag=$CI_COMMIT_TAG -X main.Commit=$CI_COMMIT_SHA -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'"
- git clone git@github.com:karmanyaahm/groupme.git ../groupme
- git clone git@github.com:karmanyaahm/mautrix-go.git ../mautrix
script: script:
- go build -ldflags "$GO_LDFLAGS" -o mautrix-whatsapp - go build -ldflags "$GO_LDFLAGS" -o mautrix-whatsapp
artifacts: artifacts: