Skip to content

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

Merged
YanaXu merged 1 commit intomasterfrom
sy/ncc
Mar 27, 2024
Merged

Use @vercel/ncc to compile Azure/login#428
YanaXu merged 1 commit intomasterfrom
sy/ncc

Conversation

@MoChilia
Copy link
Copy Markdown
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 temporarily deployed to Automation test March 27, 2024 09:29 — with GitHub Actions Inactive
@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
@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