Skip to content

Migration to v1.1.5

These are the steps to migrate from v1.1.4 to v1.1.5.

Remove conditional from documentation check

Removes the if guard from the "Check documentation is valid" step so it also runs on main branch pushes.

Why: Swatinem/rust-cache saves the build cache on the first push after a Cargo.lock change. The cache key stays the same until the next lockfile update, so subsequent pushes cannot add new artifacts to it.

Previously this step only ran on PRs and tags, meaning the cache (created by a main push) never included dev-profile artifacts. Every PR recompiled all dependencies for cargo doc from scratch (~70 s).

Running this step on every push ensures the cache is populated with dev-profile artifacts from the start.

Update .github/workflows/rust.yml

       - name: Check documentation is valid
-        if: github.event_name == 'pull_request' || startsWith(github.ref, 'refs/tags/')
         working-directory: src
         env:
           RUSTDOCFLAGS: "-D warnings"
         run: cargo doc --no-deps --workspace --all-features --document-private-items --target ${{ matrix.target }}

Update the template version marker

- reloaded-templates-rust:1.1.4
+ reloaded-templates-rust:1.1.5