mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:19:59 +00:00
Update GitHub Actions workflows: remove redundant branch from docs-and-testcov and enhance Rust setup in run-unit-tests
This commit is contained in:
parent
bccde27fb8
commit
de549d15d5
2
.github/workflows/docs-and-testcov.yml
vendored
2
.github/workflows/docs-and-testcov.yml
vendored
@ -6,7 +6,7 @@ concurrency:
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, update_docs_workflow]
|
||||
branches: [main]
|
||||
# pull_request:
|
||||
# branches: [main]
|
||||
workflow_dispatch:
|
||||
|
29
.github/workflows/run-benchmarks-self-hosted.yml
vendored
29
.github/workflows/run-benchmarks-self-hosted.yml
vendored
@ -1,29 +0,0 @@
|
||||
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 --features bench
|
||||
|
||||
- name: Upload benchmark reports
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: benchmark-reports-${{ github.sha }}
|
||||
path: ./target/criterion/
|
7
.github/workflows/run-unit-tests.yml
vendored
7
.github/workflows/run-unit-tests.yml
vendored
@ -39,8 +39,11 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
run: rustup update stable
|
||||
- name: Set up Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
- name: Install cargo-llvm-cov
|
||||
uses: taiki-e/install-action@cargo-llvm-cov
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user