Skip to content

Commit c7c99d9

Browse files
committed
build: update workflow
1 parent 341975b commit c7c99d9

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,30 @@ env:
1111

1212
jobs:
1313
lint-build-test:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.runner }}
15+
strategy:
16+
matrix:
17+
runner: [ubuntu-latest, windows-latest, macos-latest]
18+
include:
19+
- runner: ubuntu-latest
20+
platform: linux
21+
- runner: windows-latest
22+
platform: windows
23+
- runner: macos-latest
24+
platform: macos
1525

1626
steps:
1727
- uses: actions/checkout@v3
1828
- uses: actions/setup-node@v4
1929
with:
2030
node-version: '20.11.0'
21-
- name: check
31+
- name: Check
2232
run: cargo run --package tool-dev -- check
23-
- name: clippy
33+
- name: Clippy
2434
run: cargo run --package tool-dev -- clippy
25-
- name: fmt
35+
- name: Format
2636
run: cargo run --package tool-dev -- fmt
27-
- name: build
28-
run: cargo run --package tool-dev -- build linux
29-
- name: test
30-
run: cargo run --package tool-dev -- test linux
37+
- name: Build
38+
run: cargo run --package tool-dev -- build ${{ matrix.platform }}
39+
- name: Test
40+
run: cargo run --package tool-dev -- test ${{ matrix.platform }}

0 commit comments

Comments
 (0)