mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:19:59 +00:00
Refactor benchmark workflows to use self-hosted runner and disable push trigger
This commit is contained in:
parent
4fe81b7a26
commit
8876379443
29
.github/workflows/run-benchmarks-self-hosted.yml
vendored
Normal file
29
.github/workflows/run-benchmarks-self-hosted.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Run benchmarks
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
run-benchmarks:
|
||||
runs-on: self-hosted-linux
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Run benchmarks
|
||||
run: cargo bench
|
||||
|
||||
- name: Upload benchmark reports
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: benchmark-reports-${{ github.sha }}
|
||||
path: ./target/criterion/
|
6
.github/workflows/run-benchmarks.yml
vendored
6
.github/workflows/run-benchmarks.yml
vendored
@ -2,9 +2,9 @@ name: Run benchmarks
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
# push:
|
||||
# branches:
|
||||
# - main
|
||||
|
||||
jobs:
|
||||
run-benchmarks:
|
||||
|
Loading…
x
Reference in New Issue
Block a user