Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

ci: limit disk usage #293

Merged
merged 5 commits into from
Sep 25, 2023
Merged

ci: limit disk usage #293

merged 5 commits into from
Sep 25, 2023

Conversation

evilrobot-01
Copy link
Contributor

@evilrobot-01 evilrobot-01 commented Sep 19, 2023

A few attempts to limit the disk usage during CI tests:

warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
  • disables debug info for the test profile (debatable on whether this should be done)
  • removes nightly from the setup-worker template
  • uses Swatinem/rust-cache for 'smart rust caching', along with disabling incremental builds.

Based on suggestions from https://matklad.github.io/2021/09/04/fast-rust-builds.html#CI-Caching and https://matklad.github.io/2021/09/04/fast-rust-builds.html#CI-Workflow.

PS - caches are now 1.1gb (release) and 1.5gb (debug), whereas previously the debug cache was ~4.5gb.

@evilrobot-01 evilrobot-01 marked this pull request as draft September 20, 2023 00:18
@evilrobot-01 evilrobot-01 changed the title chore: default feature resolver ci: limit disk usage Sep 20, 2023
@evilrobot-01 evilrobot-01 marked this pull request as ready for review September 20, 2023 07:24
@stiiifff stiiifff merged commit 9b15c1b into main Sep 25, 2023
4 checks passed
@stiiifff stiiifff deleted the frank/feature-resolver branch September 25, 2023 12:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants