update release ci
This commit is contained in:
parent
831026a8d7
commit
a09d905598
1 changed files with 39 additions and 25 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
default:
|
default:
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
|
||||||
compile-with-posix-features:
|
compile-with-posix-features:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
|
@ -16,30 +21,6 @@ compile-implicit-load:
|
||||||
script:
|
script:
|
||||||
- cargo build -F implicit-load
|
- cargo build -F implicit-load
|
||||||
|
|
||||||
compile-release:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- cargo build -F implicit-load --release
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- target/release/flesh
|
|
||||||
- Readme.org
|
|
||||||
- Writing.org
|
|
||||||
- Shell.org
|
|
||||||
- snippets/flesh-mode.el
|
|
||||||
- snippets/genbind.f
|
|
||||||
- snippets/interactive-devel.f
|
|
||||||
- snippets/userlib.f
|
|
||||||
- LICENSE.md
|
|
||||||
- snippets/artifacts/default_fleshrc.f
|
|
||||||
- snippets/artifacts/release_contents.txt
|
|
||||||
- snippets/artifacts/install.sh
|
|
||||||
only:
|
|
||||||
variables:
|
|
||||||
- $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+-?.*$/
|
|
||||||
except:
|
|
||||||
- branches
|
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
|
@ -49,3 +30,36 @@ userlib-tests:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- cargo run --no-default-features snippets/userlib.f snippets/userlib-tests.f
|
- cargo run --no-default-features snippets/userlib.f snippets/userlib-tests.f
|
||||||
|
|
||||||
|
prepare-release:
|
||||||
|
stage: release
|
||||||
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
script:
|
||||||
|
- cargo build -F implicit-load --release
|
||||||
|
- |
|
||||||
|
tar -czf flesh-$CI_COMMIT_TAG.tar.gz \
|
||||||
|
target/release/flesh \
|
||||||
|
Readme.org Writing.org Shell.org \
|
||||||
|
snippets/flesh-mode.el \
|
||||||
|
snippets/genbind.f \
|
||||||
|
snippets/interactive-devel.f \
|
||||||
|
snippets/userlib.f \
|
||||||
|
LICENSE.md \
|
||||||
|
snippets/release/default_fleshrc.f \
|
||||||
|
snippets/release/release_contents.txt \
|
||||||
|
snippets/release/install.sh
|
||||||
|
- echo $CI_COMMIT_TAG > VERSION
|
||||||
|
- echo $CI_JOB_ID > ID
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- flesh-$CI_COMMIT_TAG.tar.gz
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_TAG =~ "/^v\d+.\d+.\d+/"'
|
||||||
|
release:
|
||||||
|
name: 'Release v$(cat VERSION)'
|
||||||
|
description: 'See releast_contents.txt'
|
||||||
|
tag_name: $CI_COMMIT_TAG
|
||||||
|
assets:
|
||||||
|
links:
|
||||||
|
- name: Get the release here
|
||||||
|
- url: https://gitlab.com/whom/relish/-/jobs/`cat ID`/artifacts/file/flesh-`cat VERSION`.tar.gz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue