Skip to content

Commit f1dc3c6

Browse files
committed
chore: use matrix job
1 parent 65369d7 commit f1dc3c6

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ${{ matrix.os }}
2626
strategy:
2727
matrix:
28-
os: [macos-latest]
28+
os: [macos-latest, windows-2019]
2929
node-version: [20.x]
3030

3131
steps:
@@ -58,33 +58,3 @@ jobs:
5858
run: |
5959
yarn run package
6060
61-
build-windows:
62-
runs-on: windows-2019
63-
steps:
64-
- uses: actions/checkout@v4
65-
- name: Use Node.js 20.x
66-
uses: actions/setup-node@v4
67-
with:
68-
node-version: 20.x
69-
- name: Get yarn cache directory path
70-
id: yarn_cache_dir_path
71-
run: echo "dir=$(yarn config get cacheFolder)" >> $Env:GITHUB_OUTPUT
72-
73-
- uses: actions/cache@v4
74-
id: yarn_cache
75-
with:
76-
path: ${{ steps.yarn_cache_dir_path.outputs.dir }}
77-
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
78-
restore-keys: |
79-
${{ runner.os }}-yarn-
80-
- name: Install
81-
run: |
82-
yarn install --immutable
83-
84-
- name: Build
85-
run: |
86-
yarn run electron-rebuild
87-
88-
- name: Package
89-
run: |
90-
yarn run package

0 commit comments

Comments
 (0)