8
8
workflow_dispatch :
9
9
10
10
jobs :
11
- cargo- check :
12
- name : Cargo Check
11
+ check-consts :
12
+ name : Check the constants from stacks-inspect
13
13
runs-on : ubuntu-latest
14
14
defaults :
15
15
run :
27
27
uses : actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
28
28
with :
29
29
toolchain : ${{ env.RUST_TOOLCHAIN }}
30
+ # # run the cargo check steps with
31
+
32
+ # # this step fails on the unused imports
33
+ - name : Cargo Check (clarity)
34
+ # if: ${{ false }}
35
+ id : cargo_check_clarity
36
+ run : |
37
+ RUSTFLAGS="" cargo check -p clarity --no-default-features
30
38
31
- # # run the cargo check steps
32
39
- name : Cargo Check
33
40
id : cargo_check
34
41
run : |
@@ -39,58 +46,17 @@ jobs:
39
46
run : |
40
47
cargo check --features monitoring_prom
41
48
42
- - name : Cargo Check (clarity)
43
- id : cargo_check_clarity
44
- run : |
45
- RUSTFLAGS="" cargo check -p clarity --no-default-features
49
+ # ## this step fails on the unused imports
50
+ # - name: Cargo Check (clarity)
51
+ # # if: ${{ false }}
52
+ # id: cargo_check_clarity
53
+ # run: |
54
+ # cargo check -p clarity --no-default-features
46
55
47
56
- name : Cargo Check (stacks-common)
48
57
id : cargo_check_stacks-common
49
58
run : |
50
59
cargo check -p stacks-common --no-default-features
51
-
52
- check-consts :
53
- name : Check the constants from stacks-inspect
54
- runs-on : ubuntu-latest
55
- needs :
56
- - cargo-check
57
- defaults :
58
- run :
59
- shell : bash
60
-
61
- steps :
62
- - name : Checkout the latest code
63
- id : git_checkout
64
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
65
- - name : Define Rust Toolchain
66
- id : define_rust_toolchain
67
- run : echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV
68
- - name : Setup Rust Toolchain
69
- id : setup_rust_toolchain
70
- uses : actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
71
- with :
72
- toolchain : ${{ env.RUST_TOOLCHAIN }}
73
-
74
- # ## run the cargo check steps
75
- # - name: Cargo Check
76
- # id: cargo_check
77
- # run: |
78
- # cargo check
79
-
80
- # - name: Cargo Check (monitoring_prom)
81
- # id: cargo_check_prom
82
- # run: |
83
- # cargo check --features monitoring_prom
84
-
85
- # - name: Cargo Check (clarity)
86
- # id: cargo_check_clarity
87
- # run: |
88
- # RUSTFLAGS="" cargo check -p clarity --no-default-features
89
-
90
- # - name: Cargo Check (stacks-common)
91
- # id: cargo_check_stacks-common
92
- # run: |
93
- # cargo check -p stacks-common --no-default-features
94
60
95
61
- name : Dump constants JSON
96
62
id : consts-dump
100
66
- name : Compare expected constants JSON
101
67
id : expects-json
102
68
run : |
69
+ # if there is a diff, return will be non-zero
103
70
diff out.json ./sample/expected_consts.json >> $GITHUB_STEP_SUMMARY
0 commit comments