8
8
workflow_dispatch :
9
9
10
10
jobs :
11
- check-consts :
12
- name : Check the constants from stacks-inspect
11
+ cargo-check :
12
+ name : Cargo Check
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
38
30
31
+ # # run the cargo check steps
39
32
- name : Cargo Check
40
33
id : cargo_check
41
34
run : |
@@ -46,17 +39,58 @@ jobs:
46
39
run : |
47
40
cargo check --features monitoring_prom
48
41
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
42
+ - name : Cargo Check (clarity)
43
+ id : cargo_check_clarity
44
+ run : |
45
+ RUSTFLAGS="" cargo check -p clarity --no-default-features
55
46
56
47
- name : Cargo Check (stacks-common)
57
48
id : cargo_check_stacks-common
58
49
run : |
59
50
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
60
94
61
95
- name : Dump constants JSON
62
96
id : consts-dump
66
100
- name : Compare expected constants JSON
67
101
id : expects-json
68
102
run : |
69
- # if there is a diff, return will be non-zero
70
103
diff out.json ./sample/expected_consts.json >> $GITHUB_STEP_SUMMARY
0 commit comments