Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gitlab Project Doctor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
Numérique et Écologie
Gitlab Project Doctor
Commits
4a58ab08
Verified
Commit
4a58ab08
authored
1 year ago
by
Geoffrey Arthaud
Browse files
Options
Downloads
Patches
Plain Diff
Release executables in artifacts
parent
eef78078
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+40
-21
40 additions, 21 deletions
.gitlab-ci.yml
with
40 additions
and
21 deletions
.gitlab-ci.yml
+
40
−
21
View file @
4a58ab08
stages
:
-
build
-
build_test
-
release
check-format
:
stage
:
build
stage
:
build
_test
image
:
rust:latest
script
:
-
rustup component add rustfmt
...
...
@@ -10,54 +11,72 @@ check-format:
tags
:
-
buildonly
rust-latest
:
stage
:
build
test-
rust-latest
:
stage
:
build
_test
image
:
rust:latest
script
:
-
cargo build --verbose
-
cargo test --verbose
tags
:
-
buildonly
rust-nightly
:
stage
:
build
test-
rust-nightly
:
stage
:
build
_test
image
:
rustlang/rust:nightly
script
:
-
cargo build --verbose
-
cargo test --verbose
allow_failure
:
true
tags
:
-
buildonly
r
ust-alpine
:
stage
:
build
r
elease-linux
:
stage
:
release
image
:
rust:latest
variables
:
TARGET
:
target/x86_64-unknown-linux-musl/release/gitlab-project-doctor
script
:
-
apt update -y
-
apt install -y musl-dev musl-tools build-essential
-
rustup target add x86_64-unknown-linux-musl
-
cargo build --target x86_64-unknown-linux-musl --release
-
target/x86_64-unknown-linux-musl/release/gitlab-project-doctor --help
-
strip $TARGET
-
ldd $TARGET
-
$TARGET --help
artifacts
:
paths
:
-
$TARGET
tags
:
-
buildonly
rust-macos
:
stage
:
build
release-macos-silicon
:
stage
:
release
variables
:
TARGET
:
target/aarch64-apple-darwin/release/gitlab-project-doctor
script
:
-
rustup target add aarch64-apple-darwin
-
cargo build --target aarch64-apple-darwin --release
-
strip target/aarch64-apple-darwin/release/gitlab-project-doctor
-
target/aarch64-apple-darwin/release/gitlab-project-doctor --help
-
strip $TARGET
-
otool -L $TARGET
-
$TARGET --help
artifacts
:
paths
:
-
$TARGET
tags
:
-
macos_mx
retry
:
1
rust-macos-x86
:
stage
:
build
image
:
joseluisq/rust-linux-darwin-builder:1.76.0
release-macos-x86
:
stage
:
release
variables
:
TARGET
:
target/x86_64-apple-darwin/release/gitlab-project-doctor
script
:
-
rustup target add x86_64-apple-darwin
-
cargo build --target x86_64-apple-darwin --release
-
strip target/x86_64-apple-darwin/release/gitlab-project-doctor
-
target/x86_64-apple-darwin/release/gitlab-project-doctor --help
-
strip $TARGET
-
otool -L $TARGET
-
$TARGET --help
artifacts
:
paths
:
-
$TARGET
tags
:
-
macos_mx
\ No newline at end of file
-
macos_mx
retry
:
1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment