Skip to content

Commit

Permalink
Create rust.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause authored Jun 29, 2021
1 parent 1f3bcad commit 8d52dd1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Rust build

on: push

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Cache .cargo
id: cache-primes
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-${{ hashFiles('Cargo**') }}
- name: Install rust script
uses: actions-rs/cargo@v1
with:
command: test
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

0 comments on commit 8d52dd1

Please sign in to comment.