Specify env once for all jobs
This commit is contained in:
parent
402bf53a09
commit
ef6a0417f4
23
.github/workflows/ci.yaml
vendored
23
.github/workflows/ci.yaml
vendored
@ -7,14 +7,18 @@ on:
|
||||
- staging
|
||||
- trying
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_NET_RETRY: 10
|
||||
CC: deny_c
|
||||
RUN_SLOW_TESTS: 1
|
||||
RUSTFLAGS: -D warnings
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
|
||||
jobs:
|
||||
rust-audit:
|
||||
name: Audit Rust vulnerabilities
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
CARGO_NET_RETRY: 10
|
||||
|
||||
steps:
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
@ -46,14 +50,6 @@ jobs:
|
||||
matrix:
|
||||
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:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
@ -111,9 +107,6 @@ jobs:
|
||||
typescript:
|
||||
name: TypeScript
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CXX: g++-4.9
|
||||
CC: gcc-4.9
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@ -8,6 +8,12 @@ on:
|
||||
- release
|
||||
- nightly
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_NET_RETRY: 10
|
||||
RUSTFLAGS: -D warnings
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
|
||||
jobs:
|
||||
dist:
|
||||
name: dist
|
||||
@ -16,12 +22,6 @@ jobs:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
CARGO_NET_RETRY: 10
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
9
.github/workflows/rustdoc.yaml
vendored
9
.github/workflows/rustdoc.yaml
vendored
@ -4,12 +4,15 @@ on:
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_NET_RETRY: 10
|
||||
RUSTFLAGS: -D warnings
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
|
||||
jobs:
|
||||
rustdoc:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
CARGO_INCREMENTAL: 0
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
Loading…
Reference in New Issue
Block a user