From 99a38d09a21e9db0d4c5ec0de1f525a518faf72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20M=C3=BCller?= Date: Tue, 17 Dec 2024 10:09:15 +0100 Subject: [PATCH] enable rust caches via the setup-rust-toolchain@v1 action --- .github/workflows/benchmark.yml | 12 ++++++++++-- .github/workflows/build.yml | 20 +++++++++++++------- .github/workflows/pages.yml | 3 +-- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 31d23d8..7e50b55 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 061654f..c63570f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,6 @@ name: Build & Test on: - push: - branches: [ "master" ] pull_request: branches: [ "master" ] @@ -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 diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b940a41..77c9bf5 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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: