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 1/4] 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 de5eadb61a4c78cc4c91e8e7c24f6d85b6745043..8c1e09ee74ab1a79858f9245022226c664cf2642 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 65475a41b90e473ac31e78517239b4692bcce98e..482e1c51f306b5d0aefb84ee9a6e57af934152d2 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: From 8a6d3094c43e6ed3fb69e74fc9c301ef9860f996 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:37:41 +0100 Subject: [PATCH 2/4] Change tabs to spaces --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 482e1c51f306b5d0aefb84ee9a6e57af934152d2..bffc06075a423f235210d84d973c96f97b5fbb5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - test steps: - name: Set up default .cargo/config.toml - run: echo "[build]\nrustflags = [\"-D\", \"warnings\"]" > $HOME/.cargo/config.toml + run: echo "[build]\nrustflags = [\"-D\", \"warnings\"]" > $HOME/.cargo/config.toml - name: Checkout repo uses: actions/checkout@v3 From 6f8e03470ca882867e729aad8f15167f22a8609a Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:41:26 +0100 Subject: [PATCH 3/4] Use printf instead of echo --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bffc06075a423f235210d84d973c96f97b5fbb5e..9af0ab57a905b85b11f4065d38ca98f18807467b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - test steps: - name: Set up default .cargo/config.toml - run: echo "[build]\nrustflags = [\"-D\", \"warnings\"]" > $HOME/.cargo/config.toml + run: printf "[build]\nrustflags = [\"-D\", \"warnings\"]" > $HOME/.cargo/config.toml - name: Checkout repo uses: actions/checkout@v3 From 492c3a1e83118af28b6a9d534efadeeb1525186d Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 22 Nov 2023 15:14:24 +0100 Subject: [PATCH 4/4] Bump artifact size limit for CI to 100GB --- .github/actions/run_tests/action.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/release_nightly.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/run_tests/action.yml b/.github/actions/run_tests/action.yml index 8c1e09ee74ab1a79858f9245022226c664cf2642..1ea51a06a6b4f26935e2c752beb0cad12139fcfb 100644 --- a/.github/actions/run_tests/action.yml +++ b/.github/actions/run_tests/action.yml @@ -19,7 +19,7 @@ runs: - name: Limit target directory size shell: bash -euxo pipefail {0} - run: script/clear-target-dir-if-larger-than 70 + run: script/clear-target-dir-if-larger-than 100 - name: Run check shell: bash -euxo pipefail {0} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9af0ab57a905b85b11f4065d38ca98f18807467b..208d538976d4b477ba02c0c635d3b5a271916e7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,7 @@ jobs: submodules: "recursive" - name: Limit target directory size - run: script/clear-target-dir-if-larger-than 70 + run: script/clear-target-dir-if-larger-than 100 - name: Determine version and release channel if: ${{ startsWith(github.ref, 'refs/tags/v') }} diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 447e928866d0bd877d1369a8da6c130bf2d9e8cd..7b08c52c61395b09e9925ddb99a31470049b021b 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -79,7 +79,7 @@ jobs: submodules: "recursive" - name: Limit target directory size - run: script/clear-target-dir-if-larger-than 70 + run: script/clear-target-dir-if-larger-than 100 - name: Set release channel to nightly run: |