Skip to content

Commit 3ab5aff

Browse files
committed
skip download
1 parent d9a3c29 commit 3ab5aff

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

.github/workflows/benchmark.yml

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,28 @@ jobs:
3232
with:
3333
tool: cargo-codspeed
3434

35+
- uses: actions/setup-node@v5
36+
with:
37+
node-version: 22
38+
cache: 'yarn'
39+
- name: Install dependencies
40+
run: yarn install
41+
- name: Download fixtures
42+
run: node download-fixtures.js
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3545
- name: Build benchmark
3646
run: cargo codspeed build --measurement-mode=walltime --features codspeed
47+
- name: Upload Fixtures
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: benchmark-fixtures
51+
path: fixtures
52+
- name: Upload rxjs
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: benchmark-rxjs
56+
path: node_modules/rxjs
3757
- name: Upload benchmark
3858
uses: actions/upload-artifact@v4
3959
with:
@@ -45,16 +65,7 @@ jobs:
4565
needs: build
4666
steps:
4767
- uses: actions/checkout@v5
48-
- uses: actions/setup-node@v5
49-
with:
50-
node-version: 22
51-
cache: 'yarn'
52-
- name: Install dependencies
53-
run: yarn install
54-
- name: Download fixtures
55-
run: node download-fixtures.js
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
5869
- uses: taiki-e/install-action@v2
5970
with:
6071
tool: cargo-codspeed
@@ -63,6 +74,16 @@ jobs:
6374
with:
6475
name: benchmark-binary
6576
path: target/codspeed
77+
- name: Download fixtures
78+
uses: actions/download-artifact@v5
79+
with:
80+
name: benchmark-fixtures
81+
path: fixtures
82+
- name: Download rxjs
83+
uses: actions/download-artifact@v5
84+
with:
85+
name: benchmark-rxjs
86+
path: node_modules/rxjs
6687
- name: Run benchmark
6788
uses: CodSpeedHQ/action@v4
6889
timeout-minutes: 15

0 commit comments

Comments
 (0)