Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Fiat Tux
Hat softwares
lufi-cli
Commits
4dfe1c4f
Verified
Commit
4dfe1c4f
authored
Apr 25, 2020
by
Luc Didry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
👷
— Build binaries from CI
parent
e95db15a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
.gitlab-ci.yml
.gitlab-ci.yml
+27
-0
CHANGELOG
CHANGELOG
+6
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
4dfe1c4f
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
C
hangelog
→
C
HANGELOG
View file @
4dfe1c4f
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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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