mirror of
https://github.com/starship/starship.git
synced 2024-11-22 00:04:05 +01:00
ci: deny warnings, useful env vars, do not cache deploy (#3629)
* ci: deny warnings, useful env vars, do not cache deploy * fix: allow nightly warnings
This commit is contained in:
parent
a18fe1808c
commit
bfff44fddb
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@ -3,6 +3,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
CARGO_NET_RETRY: 10
|
||||||
|
RUST_BACKTRACE: short
|
||||||
|
RUSTUP_MAX_RETRIES: 10
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Build sources for every OS
|
# Build sources for every OS
|
||||||
@ -62,15 +67,6 @@ jobs:
|
|||||||
- name: Setup | Checkout
|
- name: Setup | Checkout
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
|
|
||||||
# Cache files between builds
|
|
||||||
- name: Setup | Cache Cargo
|
|
||||||
uses: actions/cache@v2.1.7
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/registry
|
|
||||||
~/.cargo/git
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: actions-rs/toolchain@v1.0.7
|
||||||
with:
|
with:
|
||||||
|
10
.github/workflows/workflow.yml
vendored
10
.github/workflows/workflow.yml
vendored
@ -9,6 +9,13 @@ on:
|
|||||||
- "docs/**"
|
- "docs/**"
|
||||||
- "**.md"
|
- "**.md"
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
CARGO_NET_RETRY: 10
|
||||||
|
RUST_BACKTRACE: short
|
||||||
|
RUSTFLAGS: "-D warnings"
|
||||||
|
RUSTUP_MAX_RETRIES: 10
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Run the `rustfmt` code formatter
|
# Run the `rustfmt` code formatter
|
||||||
rustfmt:
|
rustfmt:
|
||||||
@ -156,3 +163,6 @@ jobs:
|
|||||||
# Run the ignored tests that expect the above setup
|
# Run the ignored tests that expect the above setup
|
||||||
- name: Build | Test
|
- name: Build | Test
|
||||||
run: cargo test --workspace --locked --all-features -- -Z unstable-options --include-ignored
|
run: cargo test --workspace --locked --all-features -- -Z unstable-options --include-ignored
|
||||||
|
env:
|
||||||
|
# Avoid -D warnings on nightly builds
|
||||||
|
RUSTFLAGS: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user