Skip to content

Commit

Permalink
ci: speedup & reduce cache storage (#2145)
Browse files Browse the repository at this point in the history
Twilight's CI cache regularly exceeds the 10GB storage limit provided
by GitHub, which evicts the oldest caches once the limit is reached. The
resulting cache misses increases our CI time and wastes GitHub's
resources.

By excluding the book from the doctests job, the CI no longer needs to
recompile Twilight due to the book's dependencies. This should also
reduce this job's cache size.

Cache sizes for the `Test` job:

old: 438770249B (~418MB)
new: 383544825B (~366MB)
  • Loading branch information
vilgotf authored Feb 17, 2023
1 parent 1366d66 commit 7dd5538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
run: cargo nextest --config-file ${{ github.workspace }}/nextest.toml run --profile ci --workspace --exclude book

- name: Run doctests
run: cargo test --doc
run: cargo test --doc --workspace --exclude book

feature-combinations:
name: Feature combinations
Expand Down

0 comments on commit 7dd5538

Please sign in to comment.