Skip to content

Commit 5ba45db

Browse files
authored
Merge pull request #84 from OneLiteFeatherNET/feat/benches
Feat/benches
2 parents c946ee9 + 3c2fd88 commit 5ba45db

File tree

12 files changed

+731
-310
lines changed

12 files changed

+731
-310
lines changed

.github/workflows/ci.yml

+3-21
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,8 @@ jobs:
3030
- name: Setup cache
3131
uses: Swatinem/rust-cache@v2
3232

33-
- name: Install cargo-make
34-
uses: actions-rs/cargo@v1
35-
with:
36-
command: install
37-
args: cargo-make
38-
3933
- name: Run check
40-
run: cargo make check
34+
run: make check
4135

4236
clippy:
4337
name: clippy
@@ -62,14 +56,8 @@ jobs:
6256
- name: Setup cache
6357
uses: Swatinem/rust-cache@v2
6458

65-
- name: Install cargo-make
66-
uses: actions-rs/cargo@v1
67-
with:
68-
command: install
69-
args: cargo-make
70-
7159
- name: Run clippy
72-
run: cargo make clippy
60+
run: make clippy
7361

7462
test:
7563
name: tests
@@ -97,11 +85,5 @@ jobs:
9785
- name: Setup cache
9886
uses: Swatinem/rust-cache@v2
9987

100-
- name: Install cargo-make
101-
uses: actions-rs/cargo@v1
102-
with:
103-
command: install
104-
args: cargo-make
105-
10688
- name: Tests
107-
run: cargo make ${{ matrix.test }}
89+
run: make ${{ matrix.test }}

.github/workflows/lib.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,8 @@ jobs:
2222
with:
2323
version: 8
2424

25-
- name: Install dependencies
26-
run: pnpm i
27-
working-directory: lib
28-
2925
- name: Build
30-
run: pnpm run build
31-
working-directory: lib
26+
run: make lib_build
3227

3328
- name: Publish
3429
uses: JS-DevTools/npm-publish@v3

.github/workflows/nightly.yml

+4-35
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@ jobs:
2727
- name: Setup cache
2828
uses: Swatinem/rust-cache@v2
2929

30-
- name: Install cargo-make
31-
uses: actions-rs/cargo@v1
32-
with:
33-
command: install
34-
args: cargo-make
35-
3630
- name: Run check
37-
run: cargo make check
31+
run: make check
3832

3933
clippy:
4034
name: clippy
@@ -59,14 +53,8 @@ jobs:
5953
- name: Setup cache
6054
uses: Swatinem/rust-cache@v2
6155

62-
- name: Install cargo-make
63-
uses: actions-rs/cargo@v1
64-
with:
65-
command: install
66-
args: cargo-make
67-
6856
- name: Run clippy
69-
run: cargo make clippy
57+
run: make clippy
7058

7159
tests:
7260
name: tests
@@ -94,14 +82,8 @@ jobs:
9482
- name: Setup cache
9583
uses: Swatinem/rust-cache@v2
9684

97-
- name: Install cargo-make
98-
uses: actions-rs/cargo@v1
99-
with:
100-
command: install
101-
args: cargo-make
102-
10385
- name: Tests
104-
run: cargo make ${{ matrix.test }}
86+
run: make ${{ matrix.test }}
10587

10688
docker:
10789
needs: [tests, clippy, check]
@@ -166,27 +148,14 @@ jobs:
166148
with:
167149
version: 8
168150

169-
- name: Install dependencies for lib
170-
run: pnpm i
171-
working-directory: lib
172-
173-
- name: Build lib
174-
run: pnpm run build
175-
working-directory: lib
176-
177-
- name: Install dependencies
178-
run: pnpm i
179-
working-directory: docs
180-
181151
- name: Update paths
182152
working-directory: docs/.vitepress
183153
run: |
184154
sed -i "s|/feedback-fusion/|/feedback-fusion/nightly/|g" config.ts
185155
sed -i "s|/feedback-fusion/|/feedback-fusion/nightly/|g" theme/index.ts
186156
187157
- name: Build
188-
run: pnpm run docs:build
189-
working-directory: docs
158+
run: make docs_build
190159

191160
- name: Deploy
192161
uses: peaceiris/actions-gh-pages@v4

.github/workflows/release.yml

+4-35
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@ jobs:
2727
- name: Setup cache
2828
uses: Swatinem/rust-cache@v2
2929

30-
- name: Install cargo-make
31-
uses: actions-rs/cargo@v1
32-
with:
33-
command: install
34-
args: cargo-make
35-
3630
- name: Run check
37-
run: cargo make check
31+
run: make check
3832

3933
clippy:
4034
name: clippy
@@ -59,14 +53,8 @@ jobs:
5953
- name: Setup cache
6054
uses: Swatinem/rust-cache@v2
6155

62-
- name: Install cargo-make
63-
uses: actions-rs/cargo@v1
64-
with:
65-
command: install
66-
args: cargo-make
67-
6856
- name: Run clippy
69-
run: cargo make clippy
57+
run: make clippy
7058

7159
tests:
7260
name: tests
@@ -94,14 +82,8 @@ jobs:
9482
- name: Setup cache
9583
uses: Swatinem/rust-cache@v2
9684

97-
- name: Install cargo-make
98-
uses: actions-rs/cargo@v1
99-
with:
100-
command: install
101-
args: cargo-make
102-
10385
- name: Tests
104-
run: cargo make ${{ matrix.test }}
86+
run: make ${{ matrix.test }}
10587

10688
docker:
10789
needs: [tests, clippy, check]
@@ -181,27 +163,14 @@ jobs:
181163
with:
182164
version: 8
183165

184-
- name: Install dependencies for lib
185-
run: pnpm i
186-
working-directory: lib
187-
188-
- name: Build lib
189-
run: pnpm run build
190-
working-directory: lib
191-
192-
- name: Install dependencies
193-
run: pnpm i
194-
working-directory: docs
195-
196166
- name: Update paths
197167
working-directory: docs/.vitepress
198168
run: |
199169
sed -i "s|/feedback-fusion/|/feedback-fusion/${{ env.VERSION }}/|g" config.ts
200170
sed -i "s|/feedback-fusion/|/feedback-fusion/${{ env.VERSION }}/|g" theme/index.ts
201171
202172
- name: Build
203-
run: pnpm run docs:build
204-
working-directory: docs
173+
run: make docs_build
205174

206175
- name: Deploy
207176
uses: peaceiris/actions-gh-pages@v4

0 commit comments

Comments
 (0)