Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 3a774df

Browse files
committed
Back to basics
1 parent e68624f commit 3a774df

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/workflows/build.yml

+8-20
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ jobs:
5656
strategy:
5757
matrix:
5858
os_and_node:
59-
- { os: "ubuntu-latest", node: "18" }
60-
- { os: "macos-latest", node: "18" }
61-
- { os: "windows-2019", node: "14" }
59+
# - { os: "ubuntu-latest", node: "18" }
60+
# - { os: "macos-latest", node: "18" }
61+
- { os: "windows-2019", node: "18" }
6262
fail-fast: false
6363
name: Prebuild on ${{ matrix.os_and_node.os }}
6464
runs-on: ${{ matrix.os_and_node.os }}
@@ -70,25 +70,13 @@ jobs:
7070
- uses: actions/setup-node@v3
7171
with:
7272
node-version: ${{ matrix.os_and_node.node }}
73-
- name: Update node-gyp
74-
if: ${{ matrix.os_and_node.os == 'windows-2019' }}
75-
run: |
76-
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
77-
$NodeDirPath = Split-Path $WhereNode -Parent
78-
$NodeModulesPath = $NodeDirPath + "\node_modules\npm\node_modules\npm-lifecycle"
79-
cd $NodeModulesPath
80-
npm install node-gyp@latest
81-
npm config set msvs_version 2017
82-
npm config set msvs-version 2017
83-
npm config set msvs_version 2017 --global
84-
npm config set msvs-version 2017 --global
8573
- run: npm install --ignore-scripts
86-
- run: npx --no-install prebuild -r node -t 10.0.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 -t 18.0.0
87-
- run: npx --no-install prebuild -r electron -t 21.0.0 -t 22.0.0 -t 23.0.0
88-
- if: matrix.os_and_node.os == 'windows-2019'
89-
run: npx --no-install prebuild -r electron -t 21.0.0 -t 22.0.0 -t 23.0.0 --arch ia32
74+
- run: npx --no-install prebuild -r node -t 14.0.0 -t 16.0.0 -t 18.0.0 -t 20.0.0
75+
- run: npx --no-install prebuild -r electron -t 22.0.0 -t 23.0.0 -t 24.0.0
9076
- if: matrix.os_and_node.os == 'macos-latest'
91-
run: npx --no-install prebuild -r electron -t 21.0.0 -t 22.0.0 -t 23.0.0 --arch arm64
77+
run:
78+
npx --no-install prebuild -r node -t 14.0.0 -t 16.0.0 -t 18.0.0 -t 20.0.0 --arch arm64
79+
npx --no-install prebuild -r electron -t 22.0.0 -t 23.0.0 -t 24.0.0 --arch arm64
9280

9381
publish:
9482
if: ${{ github.event_name == 'release' }}

0 commit comments

Comments
 (0)