mirror of https://gitlab.com/gitlab-org/cli.git
ci: add windows installer
This commit is contained in:
parent
c9a7c0d935
commit
7311242d47
|
@ -137,7 +137,8 @@ run_tests:
|
|||
# Disable shallow cloning so that goreleaser can diff between tags to
|
||||
# generate a changelog.
|
||||
GIT_DEPTH: 0
|
||||
dependencies: [] # Don't download artifacts, goreleaser fails if the repository folder is dirty
|
||||
needs: [windows_installer]
|
||||
dependencies: [windows_installer]
|
||||
|
||||
release_test:
|
||||
extends: .release
|
||||
|
@ -151,7 +152,33 @@ release_test:
|
|||
-v $PWD:/go/src/gitlab.com/gitlab-org/cli \
|
||||
-w /go/src/gitlab.com/gitlab-org/cli \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
goreleaser/goreleaser release --snapshot --rm-dist
|
||||
goreleaser/goreleaser release --snapshot
|
||||
|
||||
build_windows:
|
||||
stage: test
|
||||
extends: .go-cache
|
||||
script:
|
||||
- GOOS=windows GOARCH=amd64 make build
|
||||
- mv bin/glab bin/glab.exe
|
||||
artifacts:
|
||||
paths:
|
||||
- "bin/glab.exe"
|
||||
expire_in: "30 days"
|
||||
|
||||
windows_installer:
|
||||
stage: release
|
||||
image:
|
||||
name: amake/innosetup
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- mv scripts/setup_windows.iss .
|
||||
- iscc "setup_windows.iss" -DVersion=${CI_COMMIT_TAG//v}
|
||||
artifacts:
|
||||
paths:
|
||||
- "bin/*"
|
||||
expire_in: "30 days"
|
||||
dependencies: [build_windows]
|
||||
needs: [build_windows]
|
||||
|
||||
release:
|
||||
extends: .release
|
||||
|
|
|
@ -2,6 +2,8 @@ project_name: glab
|
|||
|
||||
release:
|
||||
prerelease: auto
|
||||
extra_files:
|
||||
- glob: "./bin/*.exe"
|
||||
|
||||
before:
|
||||
hooks:
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
; `iscc /dVersion="<version_here>" "setup_windows.iss"`
|
||||
|
||||
#define MyAppName "glab"
|
||||
#define MyAppPublisher "GLab"
|
||||
#define MyAppURL "https://github.com/profclems/glab"
|
||||
#define MyAppPublisher "GitLab"
|
||||
#define MyAppURL "https://gitlab.com/gitlab-org/cli"
|
||||
|
||||
#ifndef Version
|
||||
#define Version "DEV"
|
||||
|
|
Loading…
Reference in New Issue