Skip to main content
- Touch-stamp the cached
bin/casca, bin/lightningcss, and dist/* after actions/cache@v3 restores them. Without this stamp, Make compares the restored binaries' archive timestamps against the just-checked-out source tree (actions/checkout@v4 sets source-file mtimes to the checkout moment), decides the $(CASCA) file rule is stale, and invokes cargo build to rebuild. On cache hit the Install Rust toolchain step is skipped, so $HOME/.cargo/bin is not on PATH and cargo is missing, causing lint to fail at Makefile:96. Touching the cached outputs makes Make see them as fresher than the source tree and skip the rebuild path entirely. Applied defensively to all four cache-restore sites (lint, policy, lint site-deploy in lint-plus-policy.yml; preflight in release.yml) even though only the lint job currently triggers the rebuild via lint: $(CASCA) and spdx-lint: $(CASCA).