Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Improvements #54

Merged
merged 3 commits into from
Feb 19, 2024
Merged

CI Improvements #54

merged 3 commits into from
Feb 19, 2024

Conversation

danielparks
Copy link
Owner

  • PR Checks: fix workflow to run after merging a PR
    Previously the job would only run when opening or updating a PR. This
    was unintentional, and a result of a misunderstanding of the
    $default-branch “macro”, which is only used in workflow templates.
    In actual workflows, it does nothing. This just changes to explicitly
    using the branch name main.

    It’s important that the job run after merge in order to update the
    cache. The cache that’s saved when the PR is opened or updated is
    isolated to just that PR, whereas the cache on main can
    be accessed by future PRs.

  • PR Checks: cargo build --tests --all-features.

  • PR Checks: add caching for cargo msrv verify.

Previously the job would only run when opening or updating a PR. This
was unintentional, and a result of a misunderstanding of the
`$default-branch` “macro”, which is only used in workflow _templates_.
In actual workflows, it does nothing. This just changes to explicitly
using the branch name `main`.

It’s important that the job run after merge in order to update the
cache. The cache that’s saved when the PR is opened or updated is
[isolated to just that PR][isolation], whereas the cache on `main` can
be accessed by future PRs.

[isolation]: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache
@danielparks danielparks merged commit 6fe2777 into main Feb 19, 2024
5 checks passed
@danielparks danielparks deleted the ci-improvements branch February 19, 2024 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant