-
Notifications
You must be signed in to change notification settings - Fork 340
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
fix: github action build too slow #779
fix: github action build too slow #779
Conversation
This reverts commit bc23ee5.
…st-glob.sync in function compilerIcons
WalkthroughThe changes made to the GitHub Actions workflow in Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/push-check.yml (2 hunks)
Additional comments not posted (3)
.github/workflows/push-check.yml (3)
15-18
: Approved: Use of dedicated action forpnpm
installation.The change to use
pnpm/action-setup@v4
for installingpnpm
is a significant improvement. It ensures version consistency and streamlines the installation process, which is crucial for reliable builds.
39-43
: Approved: Uploading build logs as artifacts.The configuration to upload
build-alpha.log
as an artifact usingactions/upload-artifact@v4
enhances the accessibility of logs for post-build analysis. This is a crucial step for maintaining traceability and ease of debugging.
37-37
: Approved: Redirecting build output to log file.Redirecting the output of the build commands to
build-alpha.log
is a good strategy to reduce log processing overhead. However, ensure that this change does not reduce the transparency of the build process, especially when debugging failures.Run the following script to verify the impact on build transparency:
* fix: github action build too slow * fix: github action build too slow * Revert "fix: github action build too slow" This reverts commit bc23ee5. * fix: patch vite-plugin-svg-icons. add cache for frequently calling fast-glob.sync in function compilerIcons * update push-check.yml * update push-check.yml * test svg * test svg * try silent mode * log to file * revert some files
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
Running a build takes too long.
Reason: Github action takes too long when print a super large log.
Solution: Write log to file and upload it
What is the current behavior?
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
pnpm
, ensuring consistent version usage.Bug Fixes
pnpm
installation methods.