This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
forked from bluealloy/revm
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.43 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
on:
push:
branches: [main, "release/**"]
pull_request:
branches: [main, "release/**"]
jobs:
tests-stable:
name: Tests (Stable)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo test
run: cargo test --workspace --all-features
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo fmt
run: cargo +nightly fmt --all -- --check
- name: cargo clippy
run: cargo +nightly clippy --workspace --all-features -- -D warnings
- name: cargo check no-default-features
run: |
cd crates/revm
cargo check --no-default-features
- name: cargo check serde
run: |
cd crates/revm
cargo check --no-default-features --features serde
- name: cargo check std
run: |
cd crates/revm
cargo check --no-default-features --features std