From a0cda0b0df3c976b51a3c9e05b36216eeea45b77 Mon Sep 17 00:00:00 2001 From: Caleb Sharp Date: Thu, 16 May 2024 21:56:34 -0700 Subject: [PATCH] Cache build --- .github/workflows/build.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6bcb3f7..75ea39f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,21 +2,23 @@ name: Build and test on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always jobs: - build: - + build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v4 + - run: rustup toolchain install stable --profile minimal + - name: Rust Cache + uses: Swatinem/rust-cache@v2.7.3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose