-
-
Notifications
You must be signed in to change notification settings - Fork 738
feat: apply binary size check for mac and windows #12200
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,6 +10,16 @@ permissions: | |||||
| jobs: | ||||||
| size-limit: | ||||||
| name: Binding Size Limit | ||||||
| strategy: | ||||||
| fail-fast: false | ||||||
| matrix: | ||||||
| include: | ||||||
| - target: x86_64-unknown-linux-gnu | ||||||
| id: linux | ||||||
| - target: aarch64-apple-darwin | ||||||
| id: mac | ||||||
| - target: x86_64-pc-windows-msvc | ||||||
| id: win | ||||||
| runs-on: ${{ fromJSON(vars.LINUX_SELF_HOSTED_RUNNER_LABELS || '"ubuntu-22.04"') }} | ||||||
| steps: | ||||||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | ||||||
|
|
@@ -27,13 +37,11 @@ jobs: | |||||
| - name: Install Rust Toolchain | ||||||
| uses: ./.github/actions/rustup | ||||||
| with: | ||||||
| key: x86_64-unknown-linux-gnu-release | ||||||
| # don't need use cache in self-hosted windows; benefits of build with cargo build are wasted by cache restore | ||||||
| key: ${{ matrix.target }}-release | ||||||
| save-if: ${{ runner.environment != 'self-hosted' || runner.os != 'Windows' }} | ||||||
|
|
||||||
| # setup rust target for native runner | ||||||
| - name: Setup Rust Target | ||||||
| run: rustup target add x86_64-unknown-linux-gnu | ||||||
| run: rustup target add ${{ matrix.target }} | ||||||
|
|
||||||
| - name: Run Cargo codegen | ||||||
| run: cargo codegen | ||||||
|
|
@@ -50,13 +58,76 @@ jobs: | |||||
| with: | ||||||
| tool-cache: fals | ||||||
|
|
||||||
| - name: Build x86_64-unknown-linux-gnu native | ||||||
| - name: Build ${{ matrix.target }} native | ||||||
| run: | | ||||||
| rustup target add x86_64-unknown-linux-gnu | ||||||
| RUST_TARGET=x86_64-unknown-linux-gnu pnpm build:binding:release | ||||||
| rustup target add ${{ matrix.target }} | ||||||
|
||||||
| rustup target add ${{ matrix.target }} |
Copilot
AI
Nov 14, 2025
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.
Inconsistent action version format. The action version should be @v4.1.7 (with v prefix) to match the convention used elsewhere in the repository (e.g., line 21 in .github/actions/artifact/download/action.yml).
| uses: actions/download-artifact@4.1.7 | |
| uses: actions/download-artifact@v4.1.7 |
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.
The
platforminput should be accessed using GitHub Actions expression syntax. Line 30 attempts to accessinputs.platformdirectly in JavaScript, butinputsis not available in the script context. It should be"${{ inputs.platform }}"to match the pattern used on line 29 forsize-threshold.