Skip to content

Commit c303953

Browse files
Update windows 2016 CI to 2019
To update Windows box we need to upgrade node-gyp, so we need python 3.6 in ubuntu 16.04, but last version is 3.5. This is the reason Python 3.6 is build from source.
1 parent 011169f commit c303953

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,24 @@ jobs:
2020
steps:
2121
- name: Install Dependencies for Ubuntu
2222
# git >= 2.18 required for actions/checkout git support
23-
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git build-essential clang python3 libssl-dev libkrb5-dev libc++-dev
23+
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git build-essential clang libssl-dev libkrb5-dev libc++-dev wget
2424
env:
2525
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2626

27+
- name: Setup python 3.6
28+
env:
29+
CC: clang
30+
CXX: clang++
31+
run: |
32+
mkdir ~/python
33+
cd ~/python
34+
wget https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tgz
35+
tar -xvf Python-3.6.15.tgz
36+
cd Python-3.6.15
37+
./configure
38+
make
39+
make install
40+
2741
- name: Setup Environment
2842
run: |
2943
mkdir ~/.ssh_tests
@@ -142,7 +156,7 @@ jobs:
142156
matrix:
143157
node: [12, 14, 16]
144158
arch: [x86, x64]
145-
runs-on: windows-2016
159+
runs-on: windows-2019
146160
steps:
147161
- name: Setup Environment
148162
run: |

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"json5": "^2.1.0",
4444
"lodash": "^4.17.14",
4545
"nan": "^2.14.1",
46-
"node-gyp": "^7.1.2",
47-
"node-pre-gyp": "^0.13.0",
46+
"node-gyp": "^9.0.0",
47+
"@mapbox/node-pre-gyp": "^1.0.8",
4848
"ramda": "^0.25.0",
4949
"tar-fs": "^1.16.3"
5050
},

0 commit comments

Comments
 (0)