Skip to content

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

Merged
Yan Xu (YanaXu) merged 1 commit into
masterfrom
sy/ncc
Mar 27, 2024
Merged

Use @vercel/ncc to compile Azure/login#428
Yan Xu (YanaXu) merged 1 commit into
masterfrom
sy/ncc

Conversation

@MoChilia

@MoChilia Shiying Chen (MoChilia) commented Mar 27, 2024

Copy link
Copy Markdown
Member

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

@YanaXu
Yan Xu (YanaXu) merged commit e9468ba into master Mar 27, 2024
@YanaXu
Yan Xu (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