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

Commit 348582e

Browse files
committed
Switch to using windows-2016 env
1 parent d9dcad0 commit 348582e

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

Diff for: .github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
os: [ ubuntu-latest, windows-latest, macos-latest ]
13+
os: [ ubuntu-latest, windows-2016, macos-latest ]
1414
node: [ "12.0.0", "14.0.0", "16.0.0" ]
1515
task: [ test ]
1616

@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
node-version: ${{matrix.node}}
2525
- name: Configure msvs version on Windows
26-
if: ${{matrix.os == 'windows-latest'}}
26+
if: ${{matrix.os == 'windows-2016'}}
2727
run: npm config set msvs_version 2017
2828
- name: Run tests
2929
env:

Diff for: .github/workflows/tagged_release.yaml

+9-15
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
prebuild-node:
99
strategy:
1010
matrix:
11-
os: [ ubuntu-latest, windows-latest, macos-latest ]
11+
os: [ ubuntu-latest, windows-2016, macos-latest ]
1212
node: [ 14]
1313
task: [ prebuild ]
1414
runtime: [ node ]
@@ -21,12 +21,9 @@ jobs:
2121
uses: actions/setup-node@v2
2222
with:
2323
node-version: ${{matrix.node}}
24-
- name: Install global node-gyp on Linux
25-
if: ${{matrix.os == 'ubuntu-latest'}}
26-
run: sudo npm i -g node-gyp
27-
- name: Install global node-gyp on non Linux
28-
if: ${{matrix.os != 'ubuntu-latest'}}
29-
run: npm i -g node-gyp
24+
- name: Configure msvs version on Windows
25+
if: ${{matrix.os == 'windows-2016'}}
26+
run: npm config set msvs_version 2017
3027
- name: Install
3128
run: npm ci --unsafe-perm
3229
- name: Publish prebuild
@@ -36,11 +33,11 @@ jobs:
3633
prebuild-electron:
3734
strategy:
3835
matrix:
39-
os: [ ubuntu-latest, windows-latest, macos-latest ]
36+
os: [ ubuntu-latest, windows-2016, macos-latest ]
4037
node: [ 14 ]
4138
task: [ prebuild ]
4239
runtime: [ electron ]
43-
target: [ "8.0.0", "9.0.0", "10.0.0", "11.0.0", "12.0.0" ]
40+
target: [ "8.0.0", "9.0.0", "10.0.0", "11.0.0", "12.0.0", "13.0.0" ]
4441
runs-on: ${{matrix.os}}
4542
steps:
4643
- name: Set up Git repository
@@ -49,12 +46,9 @@ jobs:
4946
uses: actions/setup-node@v2
5047
with:
5148
node-version: ${{matrix.node}}
52-
- name: Install global node-gyp on Linux
53-
if: ${{matrix.os == 'ubuntu-latest'}}
54-
run: sudo npm i -g node-gyp
55-
- name: Install global node-gyp on non Linux
56-
if: ${{matrix.os != 'ubuntu-latest'}}
57-
run: npm i -g node-gyp
49+
- name: Configure msvs version on Windows
50+
if: ${{matrix.os == 'windows-2016'}}
51+
run: npm config set msvs_version 2017
5852
- name: Install
5953
run: npm ci --unsafe-perm
6054
- name: Publish prebuild

0 commit comments

Comments
 (0)