Don't explicitly set cache name, it's automatically inferred

This commit is contained in:
timvisee 2018-05-30 17:13:13 +02:00
parent 2d220e199a
commit ccf76d867f
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2

View file

@ -23,7 +23,7 @@ jobs:
# Linux with Rust stable/beta/nightly
- stage: build
rust: stable
env: TARGET=x86_64-unknown-linux-gnu CACHE_NAME=$TARGET-stable
env: TARGET=x86_64-unknown-linux-gnu
cache: cargo
script: &build-script
- cargo build --verbose --all
@ -31,12 +31,12 @@ jobs:
- cargo build --features no-color --verbose --all
- stage: build
rust: beta
env: TARGET=x86_64-unknown-linux-gnu CACHE_NAME=$TARGET-beta
env: TARGET=x86_64-unknown-linux-gnu
cache: cargo
script: *build-script
- stage: build
rust: nightly
env: TARGET=x86_64-unknown-linux-gnu CACHE_NAME=$TARGET-nightly
env: TARGET=x86_64-unknown-linux-gnu
cache: cargo
script: *build-script
@ -44,7 +44,7 @@ jobs:
- stage: build
rust: stable
os: osx
env: TARGET=x86_64-apple-darwin CACHE_NAME=$TARGET-stable
env: TARGET=x86_64-apple-darwin
cache: cargo
script: *build-script
@ -53,7 +53,7 @@ jobs:
################################
- stage: test
env: TARGET=x86_64-unknown-linux-gnu CACHE_NAME=$TARGET-stable
env: TARGET=x86_64-unknown-linux-gnu
cache: cargo
script: cargo test --verbose --all
@ -63,7 +63,7 @@ jobs:
# Cargo crate release
- stage: release
env: TARGET=x86_64-unknown-linux-gnu CACHE_NAME=$TARGET-stable
env: TARGET=x86_64-unknown-linux-gnu
cache: cargo
script:
- echo $CARGO_TOKEN | cargo login
@ -72,7 +72,7 @@ jobs:
# GitHub binary release for Linux on x86/x86_64
- stage: release
rust: stable
env: TARGET=x86_64-unknown-linux-gnu CACHE_NAME=$TARGET-stable
env: TARGET=x86_64-unknown-linux-gnu
cache: cargo
script: &script-github-release
- |
@ -96,7 +96,7 @@ jobs:
branch: master
- stage: release
rust: stable
env: TARGET=i686-unknown-linux-gnu CACHE_NAME=$TARGET-stable
env: TARGET=i686-unknown-linux-gnu
cache: cargo
install: &install-github-release-cross
- cargo install cross
@ -106,21 +106,21 @@ jobs:
# GitHub binary release for Linux on arch
- stage: release
rust: stable
env: TARGET=aarch64-unknown-linux-gnu CACHE_NAME=$TARGET-stable
env: TARGET=aarch64-unknown-linux-gnu
cache: cargo
install: *install-github-release-cross
script: *script-github-release
deploy: *deploy-github-release
- stage: release
rust: stable
env: TARGET=arm-unknown-linux-gnueabi CACHE_NAME=$TARGET-stable
env: TARGET=arm-unknown-linux-gnueabi
cache: cargo
install: *install-github-release-cross
script: *script-github-release
deploy: *deploy-github-release
- stage: release
rust: stable
env: TARGET=armv7-unknown-linux-gnueabihf CACHE_NAME=$TARGET-stable
env: TARGET=armv7-unknown-linux-gnueabihf
cache: cargo
install: *install-github-release-cross
script: *script-github-release
@ -130,7 +130,7 @@ jobs:
- stage: release
rust: stable
os: osx
env: TARGET=x86_64-apple-darwin CACHE_NAME=$TARGET-stable
env: TARGET=x86_64-apple-darwin
cache: cargo
script: *script-github-release
deploy: *deploy-github-release