mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Specify env once for all jobs
This commit is contained in:
parent
402bf53a09
commit
ef6a0417f4
3 changed files with 20 additions and 24 deletions
23
.github/workflows/ci.yaml
vendored
23
.github/workflows/ci.yaml
vendored
|
@ -7,14 +7,18 @@ on:
|
||||||
- staging
|
- staging
|
||||||
- trying
|
- trying
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
CARGO_NET_RETRY: 10
|
||||||
|
CC: deny_c
|
||||||
|
RUN_SLOW_TESTS: 1
|
||||||
|
RUSTFLAGS: -D warnings
|
||||||
|
RUSTUP_MAX_RETRIES: 10
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rust-audit:
|
rust-audit:
|
||||||
name: Audit Rust vulnerabilities
|
name: Audit Rust vulnerabilities
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUSTUP_MAX_RETRIES: 10
|
|
||||||
CARGO_NET_RETRY: 10
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
@ -46,14 +50,6 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
env:
|
|
||||||
RUSTFLAGS: -D warnings
|
|
||||||
CC: deny_c
|
|
||||||
CARGO_INCREMENTAL: 0
|
|
||||||
RUN_SLOW_TESTS: 1
|
|
||||||
RUSTUP_MAX_RETRIES: 10
|
|
||||||
CARGO_NET_RETRY: 10
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -111,9 +107,6 @@ jobs:
|
||||||
typescript:
|
typescript:
|
||||||
name: TypeScript
|
name: TypeScript
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
CXX: g++-4.9
|
|
||||||
CC: gcc-4.9
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
|
@ -8,6 +8,12 @@ on:
|
||||||
- release
|
- release
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
CARGO_NET_RETRY: 10
|
||||||
|
RUSTFLAGS: -D warnings
|
||||||
|
RUSTUP_MAX_RETRIES: 10
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dist:
|
dist:
|
||||||
name: dist
|
name: dist
|
||||||
|
@ -16,12 +22,6 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
env:
|
|
||||||
RUSTFLAGS: -D warnings
|
|
||||||
CARGO_INCREMENTAL: 0
|
|
||||||
RUSTUP_MAX_RETRIES: 10
|
|
||||||
CARGO_NET_RETRY: 10
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
9
.github/workflows/rustdoc.yaml
vendored
9
.github/workflows/rustdoc.yaml
vendored
|
@ -4,12 +4,15 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
CARGO_NET_RETRY: 10
|
||||||
|
RUSTFLAGS: -D warnings
|
||||||
|
RUSTUP_MAX_RETRIES: 10
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rustdoc:
|
rustdoc:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUSTFLAGS: -D warnings
|
|
||||||
CARGO_INCREMENTAL: 0
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
Loading…
Reference in a new issue