@@ -4,11 +4,17 @@ name: Core build tests
4
4
# - PRs are (re)opened against develop branch
5
5
on :
6
6
workflow_call :
7
+ # # for testing workflow. remove for PR
8
+ workflow_dispatch :
7
9
8
10
jobs :
9
11
check-consts :
10
12
name : Check the constants from stacks-inspect
11
13
runs-on : ubuntu-latest
14
+ defaults :
15
+ run :
16
+ shell : bash
17
+
12
18
steps :
13
19
- name : Checkout the latest code
14
20
id : git_checkout
@@ -21,13 +27,50 @@ jobs:
21
27
uses : actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
22
28
with :
23
29
toolchain : ${{ env.RUST_TOOLCHAIN }}
24
- - name : Build the binaries
25
- id : build
30
+ # # run the cargo check steps
31
+ - name : Cargo Check
32
+ id : cargo_check
33
+ run : |
34
+ cargo check
35
+ # cargo check --features monitoring_prom
36
+ # cargo check -p clarity --no-default-features
37
+ # cargo check -p stacks-common --no-default-features
38
+
39
+ - name : Cargo Check (monitoring_prom)
40
+ id : cargo_check_prom
41
+ run : |
42
+ # cargo check
43
+ cargo check --features monitoring_prom
44
+ # cargo check -p clarity --no-default-features
45
+ # cargo check -p stacks-common --no-default-features
46
+
47
+ - name : Cargo Check (clarity)
48
+ id : cargo_check_clarity
49
+ run : |
50
+ # cargo check
51
+ # cargo check --features monitoring_prom
52
+ cargo check -p clarity --no-default-features
53
+ # cargo check -p stacks-common --no-default-features
54
+
55
+ - name : Cargo Check (stacks-common)
56
+ id : cargo_check_stacks-common
57
+ run : |
58
+ # cargo check
59
+ # cargo check --features monitoring_prom
60
+ # cargo check -p clarity --no-default-features
61
+ cargo check -p stacks-common --no-default-features
62
+ # # end cargo test
63
+ - name : Build stacks-inspect
64
+ id : build_stacks-inspect
26
65
run : |
27
- cargo build
66
+ cargo build --bin stacks-inspect
67
+
28
68
- name : Dump constants JSON
29
69
id : consts-dump
30
- run : cargo run --bin stacks-inspect -- dump-consts | tee out.json
70
+ run : |
71
+ cargo run --bin stacks-inspect -- dump-consts | tee out.json
72
+
31
73
- name : Set expected constants JSON
32
74
id : expects-json
33
- run : diff out.json ./sample/expected_consts.json
75
+ run : |
76
+ diff out.json ./sample/expected_consts.json
0 commit comments