Skip to content

Commit

Permalink
Merge pull request ggerganov#19 from randomairborne/master
Browse files Browse the repository at this point in the history
add simple checking action
  • Loading branch information
tazz4843 authored Mar 13, 2023
2 parents 18bb3fb + 00df826 commit b695d43
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check code
on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
rust-version: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code into the proper directory
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Cache rust
uses: Swatinem/rust-cache@v2

- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust-version }}
components: rustfmt, clippy

- name: Check formatting
run: cargo fmt --check

- name: Check clippy lints
run: cargo clippy

0 comments on commit b695d43

Please sign in to comment.