Compare commits
No commits in common. "394bcf1897c7a7031e5374891696cbe4e5572936" and "a1b16bd8e0776873f9feb0a912bf1552add65947" have entirely different histories.
394bcf1897
...
a1b16bd8e0
1 changed files with 21 additions and 54 deletions
|
@ -16,22 +16,20 @@ default:
|
|||
stages:
|
||||
- lint
|
||||
- cache-cleanup
|
||||
- build-base
|
||||
- build
|
||||
- version
|
||||
- test
|
||||
|
||||
# TEMPLATES
|
||||
|
||||
.cargo-cleanup:
|
||||
stage: cache-cleanup
|
||||
allow_failure: true
|
||||
script:
|
||||
- cargo install cargo-sweep
|
||||
- cargo sweep -i
|
||||
|
||||
.cargo-build-base:
|
||||
stage: build-base
|
||||
# TEMPLATE
|
||||
.cargo-build:
|
||||
stage: build
|
||||
parallel:
|
||||
matrix:
|
||||
- FEATURES:
|
||||
- xdg-mime-backend
|
||||
- infer-backend
|
||||
- multi-threaded xdg-mime-backend
|
||||
- multi-threaded infer-backend
|
||||
|
||||
only:
|
||||
refs:
|
||||
|
@ -41,23 +39,17 @@ stages:
|
|||
- "/src/**/*"
|
||||
- .gitlab-ci.yml
|
||||
|
||||
script:
|
||||
cargo build --locked
|
||||
|
||||
.cargo-build:
|
||||
extends: .cargo-build-base
|
||||
stage: build
|
||||
parallel:
|
||||
matrix:
|
||||
- FEATURES:
|
||||
- xdg-mime-backend
|
||||
- infer-backend
|
||||
- multi-threaded xdg-mime-backend
|
||||
- multi-threaded infer-backend
|
||||
|
||||
script:
|
||||
cargo build --no-default-features --locked --features="json $FEATURES"
|
||||
|
||||
.cargo-cleanup:
|
||||
extends: .cargo-build
|
||||
stage: cache-cleanup
|
||||
allow_failure: true
|
||||
script:
|
||||
- cargo install cargo-sweep
|
||||
- cargo sweep -i
|
||||
|
||||
.cargo-test:
|
||||
extends: .cargo-build
|
||||
stage: test
|
||||
|
@ -95,40 +87,15 @@ cleanup-nightly:
|
|||
- target
|
||||
- .cargo
|
||||
|
||||
# BUILD BASE
|
||||
build-base-stable:
|
||||
extends: .cargo-build-base
|
||||
needs: ["cleanup-stable"]
|
||||
|
||||
build-base-msrv:
|
||||
extends: build-base-stable
|
||||
needs: ["cleanup-msrv"]
|
||||
image: "rust:1.43.0"
|
||||
cache:
|
||||
key: msrv
|
||||
paths:
|
||||
- target
|
||||
- .cargo
|
||||
|
||||
build-base-nightly:
|
||||
extends: build-base-stable
|
||||
needs: ["cleanup-nightly"]
|
||||
image: "rustlang/rust:nightly"
|
||||
cache:
|
||||
key: nightly
|
||||
paths:
|
||||
- target
|
||||
- .cargo
|
||||
|
||||
# BUILD
|
||||
|
||||
build-stable:
|
||||
extends: .cargo-build
|
||||
needs: ["build-base-stable"]
|
||||
needs: ["cleanup-stable"]
|
||||
|
||||
build-msrv:
|
||||
extends: build-stable
|
||||
needs: ["build-base-msrv"]
|
||||
needs: ["cleanup-msrv"]
|
||||
image: "rust:1.43.0"
|
||||
cache:
|
||||
key: msrv
|
||||
|
@ -138,7 +105,7 @@ build-msrv:
|
|||
|
||||
build-nightly:
|
||||
extends: build-stable
|
||||
needs: ["build-base-nightly"]
|
||||
needs: ["cleanup-nightly"]
|
||||
image: "rustlang/rust:nightly"
|
||||
cache:
|
||||
key: nightly
|
||||
|
|
Loading…
Reference in a new issue