Skip to content

Commit 50ca053

Browse files
committed
cleanup core-build-tests workflow for upstream PR
1 parent 390a41a commit 50ca053

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/core-build-tests.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,8 @@ jobs:
2727
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
2828
with:
2929
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
3830

31+
## run cargo check steps
3932
- name: Cargo Check
4033
id: cargo_check
4134
run: |
@@ -46,12 +39,11 @@ jobs:
4639
run: |
4740
cargo check --features monitoring_prom
4841
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+
## by default, RUSTFLAGS is set with `-D warnings`, which will fail this step. we run this with an empty RUSTFLAGS so the warnings won't cause a step failure
43+
- name: Cargo Check (clarity)
44+
id: cargo_check_clarity
45+
run: |
46+
RUSTFLAGS="" cargo check -p clarity --no-default-features
5547
5648
- name: Cargo Check (stacks-common)
5749
id: cargo_check_stacks-common
@@ -63,8 +55,8 @@ jobs:
6355
run: |
6456
cargo run --bin stacks-inspect -- dump-consts | tee out.json
6557
58+
## output any diff to the github job summary
6659
- name: Compare expected constants JSON
6760
id: expects-json
6861
run: |
69-
# if there is a diff, return will be non-zero
7062
diff out.json ./sample/expected_consts.json >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)