-
Notifications
You must be signed in to change notification settings - Fork 32
41 lines (35 loc) · 983 Bytes
/
rust-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Rust CI
on:
pull_request:
paths:
- "native/wasmex/**"
push:
branches:
- main
defaults:
run:
working-directory: ./native/wasmex/
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
# need to disable extra_unused_lifetimes clippy because of rustler lifetime issues
# https://github.com/rusterlium/rustler/issues/428
cargo clippy --all-targets --all-features -- -D warnings -A clippy::extra_unused_lifetimes