Skip to content

Update .gitignore

Update .gitignore #5

Workflow file for this run

name: 'Rust Build'
on:
push:
paths:
- '.github/workflows/api-check.yaml'
- 'api/**'
jobs:
build:
name: Compile
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cargo Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
./api/target
key: ${{ runner.os }}-rust-${{ hashFiles('api/Cargo.toml') }}
- name: Build
run: cd api && cargo build
clippy_lint:
name: Lint
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Cargo Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
./api/target
key: ${{ runner.os }}-rust-lint-${{ hashFiles('api/Cargo.toml') }}
- name: Rustfmt
run: cd api && cargo fmt --all -- --check
- name: Clippy
run: cd api && cargo clippy