forked from rolldown/rolldown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use self hoisted github runner (rolldown#140)
* chore: benchmark with codespeed * Use self hosted runner * Fix * Fix * Fix * self hoisted * Disable codespeed
- Loading branch information
Showing
6 changed files
with
183 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,58 @@ | ||
name: codspeed-benchmarks | ||
|
||
on: | ||
issue_comment: | ||
push: | ||
branches: | ||
- "main" # or "master" | ||
paths: | ||
- '**/*.rs' | ||
- '**/*.toml' | ||
- 'Cargo.lock' | ||
pull_request: | ||
types: [opened, synchronize] | ||
paths: | ||
- '**/*.rs' | ||
- '**/*.toml' | ||
- 'Cargo.lock' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: ${{ github.ref_name != 'main' }} | ||
|
||
jobs: | ||
benchmark: | ||
name: Benchmark | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Branch | ||
uses: actions/checkout@v4 | ||
with: | ||
# Whether Pull submodules for additional files | ||
submodules: false | ||
|
||
- name: Clone three.js | ||
run: | | ||
git clone https://github.com/mrdoob/three.js.git --depth 1 ./temp/three.js | ||
for i in {1..10}; do cp -r ./temp/three.js/src ./temp/three.js/copy$i/; done | ||
|
||
- name: Install Rust Toolchain | ||
uses: ./.github/actions/rustup | ||
with: | ||
shared-key: benchmark | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
|
||
- name: Install codspeed | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-codspeed | ||
|
||
- name: Build the benchmark target(s) | ||
run: cargo codspeed build -p bench | ||
|
||
- name: Run the benchmarks | ||
uses: CodSpeedHQ/action@v1 | ||
with: | ||
run: cargo codspeed run | ||
token: ${{ secrets.CODSPEED_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
|
@@ -16,3 +16,6 @@ harness = false | |
|
||
[lib] | ||
bench = false | ||
|
||
[dev-dependencies] | ||
codspeed-criterion-compat = "2.3.1" |