Skip to content

Commit

Permalink
enable rust caches via the setup-rust-toolchain@v1 action
Browse files Browse the repository at this point in the history
  • Loading branch information
emuell committed Dec 17, 2024
1 parent a676ace commit 99a38d0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ jobs:
runBenchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: boa-dev/criterion-compare-action@v3
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Benchmark
uses: boa-dev/criterion-compare-action@v3
with:
branchName: ${{ github.base_ref }}
20 changes: 13 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build & Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

Expand All @@ -13,8 +11,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose
3 changes: 1 addition & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build & Deploy Docs

on:
# automatically update docs when pushing to master
push:
branches: [ "master" ]
# also allow to run the workflow manually from the actions tab
# allow running the workflow from the actions tab
workflow_dispatch:

jobs:
Expand Down

0 comments on commit 99a38d0

Please sign in to comment.