Repository navigation
chore(ci): use github runners for fork prs #12345
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
96700b7
chore(ci): use github runners for fork prs
jdx 4534322
chore(ci): install mbx 0.2.0 with mise
jdx fc4e722
chore(ci): bootstrap mise before installing mbx
jdx f6bd772
chore(ci): restrict trusted cache and release paths
jdx d1c12f9
chore(ci): keep mbx lock platforms consistent
jdx 5ff571a
chore(ci): skip perf gate for tooling-only changes
jdx 9a7aa60
chore(ci): skip aggregate release for untrusted prs
jdx fe2c952
perf: isolate benchmark fixture from dev tools
jdx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: Set up mbx | ||
| description: Install mbx from mise.toml and optionally restore the main-branch GHA cache | ||
|
|
||
| inputs: | ||
| restore-cache: | ||
| description: Restore the read-only GitHub Actions cache built from main | ||
| default: "false" | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 | ||
| if: inputs.restore-cache == 'true' | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| ~/.cargo/.global-cache | ||
| ~/.cache/mbx | ||
| key: ${{ runner.os }}-${{ runner.arch }}-fork-pr-mbx-v0.2.0-${{ github.event.pull_request.base.sha }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-${{ runner.arch }}-fork-pr-mbx-v0.2.0- | ||
| - uses: jdx/mise-action@7e36c90d9ab29c415a2384db3006f3ec8a8cc654 # v4.2.4 | ||
| with: | ||
| cache: false | ||
| install_args: github:jdx/mr-boxington | ||
| - name: Verify mbx | ||
| shell: bash | ||
| run: | ||
| | # zizmor: ignore[github-env] PATH and cache paths use only runner-owned directories | ||
| mbx --version | ||
| echo "MBX_CACHE_DIR=$HOME/.cache/mbx" >> "$GITHUB_ENV" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: github runner cache | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| schedule: | ||
| - cron: "0 6 * * 0" | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: github-runner-cache-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
jdx marked this conversation as resolved.
|
||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
| RUST_BACKTRACE: 1 | ||
|
|
||
| jobs: | ||
| warm: | ||
| if: github.ref == 'refs/heads/main' | ||
| name: warm-${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 90 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-14] | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| ~/.cargo/.global-cache | ||
| ~/.cache/mbx | ||
| key: ${{ runner.os }}-${{ runner.arch }}-fork-pr-mbx-v0.2.0-${{ github.sha }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-${{ runner.arch }}-fork-pr-mbx-v0.2.0- | ||
| - uses: ./.github/actions/setup-mbx | ||
| - run: mbx build build --all-features --ignore-rust-version | ||
| # Bound each immutable GHA cache entry so Linux and macOS can coexist | ||
| # within the repository cache quota. | ||
| - run: mbx gc --max-size 3GB | ||
| if: always() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.