Skip to content

Commit c24ec72

Browse files
committed
test speed for different jobs
1 parent 5649ffa commit c24ec72

File tree

1 file changed

+50
-17
lines changed

1 file changed

+50
-17
lines changed

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

Lines changed: 50 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
check-consts:
12-
name: Check the constants from stacks-inspect
11+
cargo-check:
12+
name: Cargo Check
1313
runs-on: ubuntu-latest
1414
defaults:
1515
run:
@@ -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 the cargo check steps
3932
- name: Cargo Check
4033
id: cargo_check
4134
run: |
@@ -46,17 +39,58 @@ 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+
- name: Cargo Check (clarity)
43+
id: cargo_check_clarity
44+
run: |
45+
RUSTFLAGS="" cargo check -p clarity --no-default-features
5546
5647
- name: Cargo Check (stacks-common)
5748
id: cargo_check_stacks-common
5849
run: |
5950
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
6094

6195
- name: Dump constants JSON
6296
id: consts-dump
@@ -66,5 +100,4 @@ jobs:
66100
- name: Compare expected constants JSON
67101
id: expects-json
68102
run: |
69-
# if there is a diff, return will be non-zero
70103
diff out.json ./sample/expected_consts.json >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)