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:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
- cache-cleanup
|
- cache-cleanup
|
||||||
- build-base
|
|
||||||
- build
|
- build
|
||||||
- version
|
- version
|
||||||
- test
|
- test
|
||||||
|
|
||||||
# TEMPLATES
|
# TEMPLATE
|
||||||
|
.cargo-build:
|
||||||
.cargo-cleanup:
|
stage: build
|
||||||
stage: cache-cleanup
|
parallel:
|
||||||
allow_failure: true
|
matrix:
|
||||||
script:
|
- FEATURES:
|
||||||
- cargo install cargo-sweep
|
- xdg-mime-backend
|
||||||
- cargo sweep -i
|
- infer-backend
|
||||||
|
- multi-threaded xdg-mime-backend
|
||||||
.cargo-build-base:
|
- multi-threaded infer-backend
|
||||||
stage: build-base
|
|
||||||
|
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
|
@ -41,23 +39,17 @@ stages:
|
||||||
- "/src/**/*"
|
- "/src/**/*"
|
||||||
- .gitlab-ci.yml
|
- .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:
|
script:
|
||||||
cargo build --no-default-features --locked --features="json $FEATURES"
|
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:
|
.cargo-test:
|
||||||
extends: .cargo-build
|
extends: .cargo-build
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -95,40 +87,15 @@ cleanup-nightly:
|
||||||
- target
|
- target
|
||||||
- .cargo
|
- .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
|
||||||
|
|
||||||
build-stable:
|
build-stable:
|
||||||
extends: .cargo-build
|
extends: .cargo-build
|
||||||
needs: ["build-base-stable"]
|
needs: ["cleanup-stable"]
|
||||||
|
|
||||||
build-msrv:
|
build-msrv:
|
||||||
extends: build-stable
|
extends: build-stable
|
||||||
needs: ["build-base-msrv"]
|
needs: ["cleanup-msrv"]
|
||||||
image: "rust:1.43.0"
|
image: "rust:1.43.0"
|
||||||
cache:
|
cache:
|
||||||
key: msrv
|
key: msrv
|
||||||
|
@ -138,7 +105,7 @@ build-msrv:
|
||||||
|
|
||||||
build-nightly:
|
build-nightly:
|
||||||
extends: build-stable
|
extends: build-stable
|
||||||
needs: ["build-base-nightly"]
|
needs: ["cleanup-nightly"]
|
||||||
image: "rustlang/rust:nightly"
|
image: "rustlang/rust:nightly"
|
||||||
cache:
|
cache:
|
||||||
key: nightly
|
key: nightly
|
||||||
|
|
Loading…
Reference in a new issue