Skip to content

Commit 1795959

Browse files
OttoAllmendingeraider
andcommitted
ci: Separate Rust setup job to avoid redundant installations
Ticket: BTC-0 Co-authored-by: aider <[email protected]>
1 parent 54a4e86 commit 1795959

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,8 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
15-
unit-test:
15+
setup-rust:
1616
runs-on: ubuntu-latest
17-
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
node-version: [18.x, 20.x]
22-
2317
steps:
2418
- uses: actions/checkout@v4
2519
with:
@@ -36,6 +30,19 @@ jobs:
3630
cargo install wasm-pack --version 0.13.1
3731
cargo install wasm-opt --version 0.116.1
3832
33+
unit-test:
34+
needs: setup-rust
35+
runs-on: ubuntu-latest
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
node-version: [18.x, 20.x]
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
ref: ${{ github.event.pull_request.head.sha }}
45+
3946
- name: Setup node ${{ matrix.node-version }}
4047
uses: actions/setup-node@v3
4148
with:

0 commit comments

Comments
 (0)