Commit 382d65ad authored by Florentin Labelle's avatar Florentin Labelle
Browse files

Add mac support

parent fb69edb3
Pipeline #41742 passed with stages
in 45 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment