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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: unify ci workflow #3294

Merged
merged 1 commit into from
May 26, 2023
Merged

ci: unify ci workflow #3294

merged 1 commit into from
May 26, 2023

Conversation

Boshen
Copy link
Contributor

@Boshen Boshen commented May 25, 2023

Summary

This unifies all CI related tasks into one workflow. In addition:

  • changed how pnpm cache is restored and saved, it is now only saved when necessary, on the main branch
  • removed --release from cargo check to save some cache space, it's currently using 1.5G of cache, which is too much for the 10G limit.

Example Run: https://github.com/web-infra-dev/rspack/actions/runs/5086537787

馃 Generated by Copilot at 390196a

This pull request updates the CI pipeline for the rspack project, using custom actions for caching and a new workflow file ci.yml that runs various checks and tests on different platforms. It also deletes some unused or redundant workflow files and adds a new input parameter save-if to the cache actions.

Walkthrough

馃 Generated by Copilot at 390196a

  • Add a new workflow file ci.yml that defines the main CI pipeline for the rspack project (link)
  • Add a new input parameter save-if to the pnpm-cache and rust-cache actions that allows the user to specify a condition for saving the cache (link, link)
  • Replace the actions/cache action with the actions/cache/restore and actions/cache/save actions in the pnpm-cache action (link, link)
  • Delete the check-rs.yaml, common-check.yaml, and test.yml workflow files, as they are replaced by the ci.yml workflow (link, link, link)

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label May 25, 2023
@Boshen Boshen added this pull request to the merge queue May 26, 2023
Merged via the queue into main with commit bdf3aab May 26, 2023
16 checks passed
@Boshen Boshen deleted the refactor-ci branch May 26, 2023 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants