Skip to content

Commit 3f39751

Browse files
branchseerclaude
andcommitted
ci: split test step into separate build and run steps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 966a18e commit 3f39751

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,20 @@ jobs:
127127
# Must run after setup-node so correct native binaries are installed
128128
- run: pnpm install
129129

130-
- run: cargo test --target ${{ matrix.target }}
130+
- name: Build tests
131+
run: cargo test --no-run --target ${{ matrix.target }}
131132
if: ${{ matrix.os != 'ubuntu-latest' }}
132133

133-
- run: cargo-zigbuild test --target x86_64-unknown-linux-gnu.2.17
134+
- name: Build tests
135+
run: cargo-zigbuild test --no-run --target x86_64-unknown-linux-gnu.2.17
136+
if: ${{ matrix.os == 'ubuntu-latest' }}
137+
138+
- name: Run tests
139+
run: cargo test --target ${{ matrix.target }}
140+
if: ${{ matrix.os != 'ubuntu-latest' }}
141+
142+
- name: Run tests
143+
run: cargo-zigbuild test --target x86_64-unknown-linux-gnu.2.17
134144
if: ${{ matrix.os == 'ubuntu-latest' }}
135145

136146
test-musl:
@@ -175,7 +185,11 @@ jobs:
175185
corepack enable
176186
pnpm install
177187
178-
- run: cargo test
188+
- name: Build tests
189+
run: cargo test --no-run
190+
191+
- name: Run tests
192+
run: cargo test
179193

180194
fmt:
181195
name: Format and Check Deps

0 commit comments

Comments
 (0)