Skip to content

Commit

Permalink
Cache build
Browse files Browse the repository at this point in the history
  • Loading branch information
calebissharp committed May 17, 2024
1 parent 60e7e47 commit a0cda0b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

0 comments on commit a0cda0b

Please sign in to comment.