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
6d9bd0a1
Verified
Commit
6d9bd0a1
authored
2 years ago
by
Geoffrey Arthaud
Browse files
Options
Downloads
Patches
Plain Diff
Corrected CI on github
parent
3d018a09
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/ci.yml
+8
-49
8 additions, 49 deletions
.github/workflows/ci.yml
with
8 additions
and
49 deletions
.github/workflows/ci.yml
+
8
−
49
View file @
6d9bd0a1
...
...
@@ -10,88 +10,48 @@ jobs:
test
:
name
:
test
env
:
# For some builds, we use cross to test on 32-bit and big-endian
# systems.
CARGO
:
cargo
# When CARGO is set to CROSS, this is set to `--target matrix.target`.
TARGET_DIR
:
./target
# Emit backtraces on panics.
RUST_BACKTRACE
:
1
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
build
:
# We test on a pinned version of Rust, along with the moving
# targets of 'stable' and 'beta' for good measure.
-
pinned
-
stable
-
beta
# Our release builds are generated by a nightly compiler to take
# advantage of the latest optimizations/compile time improvements. So
# we test all of them here. (We don't do mips releases, but test on
# mips for big-endian coverage.)
-
nightly
-
nightly-musl
-
macos
-
win-msvc
-
win-gnu
include
:
-
build
:
pinned
os
:
ubuntu-
18
.04
os
:
ubuntu-
20
.04
rust
:
1.52.1
-
build
:
stable
os
:
ubuntu-
18
.04
os
:
ubuntu-
20
.04
rust
:
stable
-
build
:
beta
os
:
ubuntu-
18
.04
os
:
ubuntu-
20
.04
rust
:
beta
-
build
:
nightly
os
:
ubuntu-18.04
rust
:
nightly
-
build
:
nightly-musl
os
:
ubuntu-18.04
os
:
ubuntu-20.04
rust
:
nightly
target
:
x86_64-unknown-linux-musl
-
build
:
macos
os
:
macos-latest
rust
:
nightly
-
build
:
win-msvc
os
:
windows-2019
rust
:
nightly
runs-on
:
${{ matrix.os }}
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v2
-
name
:
Install packages (Ubuntu)
if
:
matrix.os == 'ubuntu-18.04'
run
:
|
ci/ubuntu-install-packages
-
name
:
Install packages (macOS)
if
:
matrix.os == 'macos-latest'
run
:
|
ci/macos-install-packages
-
name
:
Install Rust
uses
:
dtolnay/rust-toolchain@v1
with
:
toolchain
:
${{ matrix.rust }}
-
name
:
Use Cross
if
:
matrix.target != ''
run
:
|
cargo install cross
echo "CARGO=cross" >> $GITHUB_ENV
echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV
echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV
-
name
:
Show command used for Cargo
run
:
|
echo "cargo command is: ${{ env.CARGO }}"
echo "target flag is: ${{ env.TARGET_FLAGS }}"
-
name
:
Build gitlab-project-doctor and all crates
run
:
${{ env.CARGO }} build --verbose --workspace ${{ env.TARGET_FLAGS }}
run
:
cargo build --verbose
# This is useful for debugging problems when the expected build artifacts
# (like shell completions and man pages) aren't generated.
...
...
@@ -99,7 +59,7 @@ jobs:
shell
:
bash
run
:
|
set +x
stderr="$(find "
${{ env.TARGET_DIR }}
/debug" -name stderr -print0 | xargs -0 ls -t | head -n1)"
stderr="$(find "
target
/debug" -name stderr -print0 | xargs -0 ls -t | head -n1)"
if [ -s "$stderr" ]; then
echo "===== $stderr ===== "
cat "$stderr"
...
...
@@ -108,8 +68,7 @@ jobs:
set -x
-
name
:
Run tests
if
:
matrix.target != ''
run
:
${{ env.CARGO }} test --verbose --workspace ${{ env.TARGET_FLAGS }}
run
:
cargo test --verbose
rustfmt
:
name
:
rustfmt
...
...
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