Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florentin Labelle
padawancli
Commits
382d65ad
Commit
382d65ad
authored
May 19, 2022
by
Florentin Labelle
Browse files
Add mac support
parent
fb69edb3
Pipeline
#41742
passed with stages
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
382d65ad
...
...
@@ -7,12 +7,14 @@ build:
image
:
golang
script
:
-
go get
-
go build .
-
go build -o padawan-linux-amd64 .
-
GOARCH=arm64 GOOS=darwin go build -o padawan-darwin-arm64 .
artifacts
:
untracked
:
false
expire_in
:
10 minutes
paths
:
-
"
padawan"
-
"
padawan-linux-amd64"
-
"
padawan-darwin-arm64"
only
:
-
main
...
...
@@ -25,17 +27,20 @@ release:
-
export BUILD_JOB_ID=$(cat .build_id)
-
echo "Build release"
release
:
tag_name
:
$CI_COMMIT_BRANCH-$CI_COMMIT_SHA
tag_name
:
$CI_COMMIT_BRANCH-$
{
CI_COMMIT_SHA
:1:8}
description
:
"
New
release
of
padawan
client"
name
:
"
Padawan
cli
version
$CI_COMMIT_BRANCH-$CI_COMMIT_SHA"
name
:
"
Padawan
cli
version
$CI_COMMIT_BRANCH-$
{
CI_COMMIT_SHA
:1:8}
"
assets
:
links
:
-
name
:
"
padawan"
url
:
"
$CI_API_V4_URL/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/files/padawan"
-
name
:
"
padawan-linux-amd64"
url
:
"
https://gitlab.viarezo.fr/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/padawan-linux-amd64"
-
name
:
"
padawan-darwin-arm64"
url
:
"
https://gitlab.viarezo.fr/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/padawan-darwin-arm64"
artifacts
:
untracked
:
false
expire_in
:
30 days
paths
:
-
"
padawan"
-
"
padawan-linux-amd64"
-
"
padawan-darwin-arm64"
only
:
-
main
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment