From ef6a0417f487403a2e69bc0688dd6d67baa6b67b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 26 Mar 2020 10:21:00 +0100 Subject: Specify env once for all jobs --- .github/workflows/ci.yaml | 23 ++++++++--------------- .github/workflows/release.yaml | 12 ++++++------ .github/workflows/rustdoc.yaml | 9 ++++++--- 3 files changed, 20 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 58c8f083a..29e388e7c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c055d113d..fd184e8f1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/.github/workflows/rustdoc.yaml b/.github/workflows/rustdoc.yaml index c84ce5d48..cf4bca840 100644 --- a/.github/workflows/rustdoc.yaml +++ b/.github/workflows/rustdoc.yaml @@ -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 -- cgit v1.2.3