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
5fa436cc
Verified
Commit
5fa436cc
authored
1 year ago
by
Geoffrey Arthaud
Browse files
Options
Downloads
Patches
Plain Diff
Reduce cargo parallelism to avoid OpenSSL build failure
parent
2d488404
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
+4
-14
4 additions, 14 deletions
.gitlab-ci.yml
with
4 additions
and
14 deletions
.gitlab-ci.yml
+
4
−
14
View file @
5fa436cc
...
...
@@ -12,16 +12,12 @@ check-format:
script
:
-
rustup component add rustfmt
-
cargo fmt --all -- --check
tags
:
-
buildonly
test-rust-latest
:
stage
:
build_test
image
:
rust:latest
script
:
-
cargo test --verbose
tags
:
-
buildonly
test-rust-nightly
:
stage
:
build_test
...
...
@@ -29,8 +25,6 @@ test-rust-nightly:
script
:
-
cargo test --verbose
allow_failure
:
true
tags
:
-
buildonly
.rust-release
:
stage
:
release
...
...
@@ -38,7 +32,7 @@ test-rust-nightly:
TARGET
:
target/$TARGET_ARCH/release/gitlab-project-doctor
script
:
-
rustup target add $TARGET_ARCH
-
cargo build --target $TARGET_ARCH --release
-
cargo build
$CARGO_OPTS
--target $TARGET_ARCH --release
-
strip $TARGET
-
$LDD_CMD $TARGET
-
$TARGET --help
...
...
@@ -55,26 +49,24 @@ release-linux:
before_script
:
-
apt update -y
-
apt install -y musl-dev musl-tools build-essential
tags
:
-
buildonly
release-macos-silicon
:
extends
:
.rust-release
variables
:
TARGET_ARCH
:
aarch64-apple-darwin
CARGO_OPTS
:
-j
1
# Excessive parallelism causes OpenSSL build to fail
LDD_CMD
:
otool -L
tags
:
-
macos_mx
retry
:
1
# First-time OpenSSL build will fail rust build
release-macos-x86
:
extends
:
.rust-release
variables
:
TARGET_ARCH
:
x86_64-apple-darwin
CARGO_OPTS
:
-j
1
# Excessive parallelism causes OpenSSL build to fail
LDD_CMD
:
otool -L
tags
:
-
macos_mx
retry
:
1
# First-time OpenSSL build will fail rust build
docker_build
:
stage
:
deploy
...
...
@@ -82,7 +74,5 @@ docker_build:
COMMIT_CREATE_LATEST
:
"
true"
IMAGE_TAG
:
"
v1.19.2-debug"
retry
:
2
dependencie
s
:
need
s
:
-
release-linux
tags
:
-
buildonly
\ 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