Skip to content

Commit a2679ae

Browse files
committed
ci: add MacOS and update
1 parent 82e4634 commit a2679ae

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build-electron
1+
name: build-electron-mac
22

33
on:
44
push:
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: windows-latest
11+
runs-on: macos-latest
1212

1313
strategy:
1414
matrix:
@@ -28,5 +28,4 @@ jobs:
2828
working-directory: ./demos/with-electron
2929
run: |
3030
pnpm install --no-frozen-lockfile
31-
pnpm run build:win32
32-
pnpm run build:win64
31+
pnpm run build:mac
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build-electron-win
2+
3+
on:
4+
push:
5+
branches: ["main", "develop"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x, 21.x, 22.x]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- uses: pnpm/action-setup@v3
24+
with:
25+
version: 8
26+
27+
- name: Build with-electron
28+
working-directory: ./demos/with-electron
29+
run: |
30+
pnpm install --no-frozen-lockfile
31+
pnpm run build:win32
32+
# pnpm run build:win64

0 commit comments

Comments
 (0)