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

Use @vercel/ncc to compile Azure/login #428

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Use @vercel/ncc to compile Azure/login #428

merged 1 commit into from
Mar 27, 2024

Conversation

MoChilia
Copy link
Member

@MoChilia MoChilia commented Mar 27, 2024

Since @vercel/ncc is recommended in the GitHub official documentation (also see the usage in Azure/cli) for compiling code and modules into a single file for distribution, we plan to utilize this tool to minimize the package size and setup time for Azure/login.

The package size is reduced from 88MB to 550KB.
image

The setup time is reduced from avg 4s (may be longer on self-hosted runner, see #103) to less than 1s.
image

Test workflow: https://github.com/Azure/azclitools-actions-test/blob/main/.github/workflows/azure-login-test-setupTime.yml
Ubuntu-latest: 3s -> 1s
Windows-latest: 4s-> 1s
MacOs-latest: 7s -> 1s
Self-linux: 3s -> 1s
Self-windows: 108s -> 2s

Thanks @kWozniak-tt, for bringing this to our attention and for your valuable contribution in #367 to this topic!

Close #366

@MoChilia MoChilia self-assigned this Mar 27, 2024
@MoChilia MoChilia requested a review from YanaXu March 27, 2024 09:29
@MoChilia MoChilia mentioned this pull request Mar 27, 2024
@YanaXu YanaXu merged commit e9468ba into master Mar 27, 2024
22 of 25 checks passed
@YanaXu YanaXu deleted the sy/ncc branch March 27, 2024 09:42
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.

Package Size Issue with Azure Login GitHub Action
2 participants