Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: golang:1.16-alpine
- variables:
- # Please edit to your GitLab project
- REPO_NAME: danmaku
- # The problem is that to be able to use go get, one needs to put
- # the repository in the $GOPATH. So for example if your gitlab domain
- # is gitlab.com, and that your repository is namespace/project, and
- # the default GOPATH being /go, then you'd need to have your
- # repository in /go/src/gitlab.com/namespace/project
- # Thus, making a symbolic link corrects this.
- before_script:
- - mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- - ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- - cd $GOPATH/src/$REPO_NAME
- stages:
- - build
- - bundle
- compile:
- stage: build
- script:
- - apk add build-base
- - apk add libx11-dev
- - apk add libxrandr-dev
- - apk add libxinerama-dev
- - apk add libxcursor-dev
- - apk add libxi-dev
- - apk add alsa-lib-dev
- - apk add mesa-dev
- - go mod download
- - go build -ldflags "-s -w" -o $CI_PROJECT_DIR/danmaku
- artifacts:
- paths:
- - danmaku
- pack:
- stage: bundle
- script:
- - echo "Hello, world!"
- artifacts:
- paths:
- - bossfight.res
- - common.res
- - danmaku
- - config.ini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement