Specify env once for all jobs

This commit is contained in:
Aleksey Kladov 2020-03-26 10:21:00 +01:00
parent 402bf53a09
commit ef6a0417f4
3 changed files with 20 additions and 24 deletions

View file

@ -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

View file

@ -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

View file

@ -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