Skip to content

Commit

Permalink
Try making Windows CI not run out of disk again (#3830)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth authored Aug 10, 2023
1 parent b7aa117 commit 9914e4e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 7 additions & 0 deletions tools/make/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9914e4e

Please sign in to comment.