Skip to content

chore(ci): add homebrew tap update #17

chore(ci): add homebrew tap update

chore(ci): add homebrew tap update #17

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
jobs:
build:
name: Build and Test on ${{ matrix.toolchain }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
toolchain: [stable, nightly]
include:
- toolchain: stable
- toolchain: nightly
steps:
- uses: actions/checkout@v3
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true
components: clippy
- name: Cache Cargo Registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-${{ matrix.toolchain }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check with Clippy
if: matrix.toolchain == 'stable'
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose