From 9914e4e2c1a49c6d414b6827cdb57d25e5d20734 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 9 Aug 2023 18:08:07 -0700 Subject: [PATCH] Try making Windows CI not run out of disk again (#3830) --- .github/workflows/build-test.yml | 4 ++++ Cargo.toml | 5 +++++ Makefile.toml | 7 +++++++ tools/make/tests.toml | 7 +++++++ 4 files changed, 23 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 760e9580a63..cac8321d9ac 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -123,7 +123,11 @@ jobs: # Actual job - name: Run `cargo make ci-job-test` + if: matrix.os != 'windows-latest' run: cargo make ci-job-test + - name: Run `cargo make ci-job-test-windows` + if: matrix.os == 'windows-latest' + run: cargo make ci-job-test-windows # ci-job-test-tutorials test-tutorials: diff --git a/Cargo.toml b/Cargo.toml index 993fba748e3..a66034ceaa2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -110,3 +110,8 @@ opt-level = "s" [profile.bench] debug = true debug-assertions = false + +[profile.windows-test-ci] +inherits = "dev" +debug-assertions = true +debug = false diff --git a/Makefile.toml b/Makefile.toml index 7ebd3f6ae36..e26fe71c2d6 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -72,6 +72,13 @@ dependencies = [ "test-all-features", ] +[tasks.ci-job-test-windows] +description = "Run all tests for the CI 'test' job (with special changes to reduce Windows disk space)" +category = "CI" +dependencies = [ + "test-all-features-windows", +] + [tasks.ci-job-test-tutorials-local] description = "Run all checks for the CI 'test-tutorials' job" category = "CI" diff --git a/tools/make/tests.toml b/tools/make/tests.toml index 9f0574526ef..09ca7c8f026 100644 --- a/tools/make/tests.toml +++ b/tools/make/tests.toml @@ -34,6 +34,13 @@ category = "ICU4X Development" command = "cargo" args = ["test", "--all-features", "--all-targets", "--no-fail-fast"] +[tasks.test-all-features-windows] +description = "Run all Rust tests with all features and targets (with special changes to reduce Windows disk space)" +category = "ICU4X Development" +command = "cargo" +args = ["test", "--all-features", "--all-targets", "--no-fail-fast", "--profile", "windows-test-ci"] + + [tasks.test-docs] description = "Run all Rust doctests with all features" category = "ICU4X Development"