From 044032f9bbc6294b8af7d2646050d92053d430d5 Mon Sep 17 00:00:00 2001 From: Nishant Arora Date: Thu, 8 Sep 2022 16:26:22 -0600 Subject: [PATCH] fix(ci): windows build (#1094) * Adding windows-build-tools to the pipeline * Update .github/workflows/ci.yml * Pin to windows-build-tools@v4.0.0 --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e116a36f..0e5b1e2d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,14 @@ jobs: - name: Install Node.js uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 14 + + - name: patch node gyp on windows to support Visual Studio 2019 + shell: powershell + if: runner.os == 'Windows' + run: | + npm install --global node-gyp@latest + npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} - name: Restore .cache uses: actions/cache@v2 @@ -74,4 +81,3 @@ jobs: - name: Show Cache run: du -h ${{ github.workspace }}/.cache/* || true -