Skip to content

Bump softprops/action-gh-release from 1 to 2 #160

Bump softprops/action-gh-release from 1 to 2

Bump softprops/action-gh-release from 1 to 2 #160

Workflow file for this run

name: Rust CI
on:
pull_request:
push:
branches:
- main
defaults:
run:
working-directory: ./native/comrak_nif/
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: rust-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo fmt -- --check
- run: |
touch src/lib.rs
cargo clippy --all-targets --all-features -- -D warnings