From 552f03c49d28ec73695afc6a8ae2d1fe7d5c2235 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:36:10 +0100 Subject: [PATCH] chore/CI: place .cargo/config.toml augmentations in ~/.cargo/config.toml --- .github/actions/run_tests/action.yml | 4 ---- .github/workflows/ci.yml | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/actions/run_tests/action.yml b/.github/actions/run_tests/action.yml index de5eadb61a..8c1e09ee74 100644 --- a/.github/actions/run_tests/action.yml +++ b/.github/actions/run_tests/action.yml @@ -22,13 +22,9 @@ runs: run: script/clear-target-dir-if-larger-than 70 - name: Run check - env: - RUSTFLAGS: -D warnings shell: bash -euxo pipefail {0} run: cargo check --tests --workspace - name: Run tests - env: - RUSTFLAGS: -D warnings shell: bash -euxo pipefail {0} run: cargo nextest run --workspace --no-fail-fast diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65475a41b9..482e1c51f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,9 @@ jobs: - self-hosted - test steps: + - name: Set up default .cargo/config.toml + run: echo "[build]\nrustflags = [\"-D\", \"warnings\"]" > $HOME/.cargo/config.toml + - name: Checkout repo uses: actions/checkout@v3 with: