Verified Commit 4dfe1c4f authored by Luc Didry's avatar Luc Didry

👷 — Build binaries from CI

parent e95db15a
stages:
- create_release
- build
- publish_changelog
- pouet_it
include:
- 'https://framagit.org/fiat-tux/gitlabci-snippets/-/raw/53cf9e6c8c427ecbff4abb9615347a77f7786806/create-release-from-ci.gitlab-ci.yml'
- 'https://framagit.org/fiat-tux/gitlabci-snippets/-/raw/d4547f12fa50cb79d9172ea004086c21ad2ad433/publish_changelog.gitlab-ci.yml'
- 'https://framagit.org/fiat-tux/gitlabci-snippets/-/raw/f320f1af072fe80b6da4a8b2e22e5d87c4c8bf9f/pouet-it-from-ci.gitlab-ci.yml'
build_binaries:
stage: build
image: hatsoftwares/lufi-cli:latest
script:
- npm install
- cp bin/lufi.js .
- mkdir build/
- for os in linux alpine windows; do for arch in x86 x64; do nexe lufi.js -t ${os}-${arch}-12.9.1 -o build/lufi-${os}-${arch}; done; done
- nexe lufi.js -t mac-x64-12.9.1 -o build/lufi-mac-x64
- cd build
- for i in *; do export URL=$(gitlab-api-v4 --url=${CI_API_V4_URL} --private-token=${GITLAB_API_TOKEN} upload_file_to_project ${CI_PROJECT_ID} file:$i | jq .full_path -r); echo $URL; gitlab-api-v4 --url=${CI_API_V4_URL} --private-token=${GITLAB_API_TOKEN} create_release_link ${CI_PROJECT_ID} "${CI_COMMIT_TAG}" name:$i url:https://framagit.org${URL} --pretty; done
only:
refs:
- tags
variables:
- $GITLAB_API_TOKEN
Revision history for Lufi cli program
v0.0.4 2020-04-25
- Publish binary builds
0.0.3 2018-02-15
- Fix installation bug (bad dependency version)
0.0.2 2017-07-20
- Update README instructions
- Display help if no useful options provided (ie no download/upload/etc)
......
Markdown is supported
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