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
67 lines (55 loc) · 1.61 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
63
64
65
66
67
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
with:
targets: riscv32imac-unknown-none-elf
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo test
run: cargo test --workspace --all-features
- name: cargo check no_std
run: cargo check --target riscv32imac-unknown-none-elf --no-default-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