Skip to content

Commit

Permalink
Fight with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
muffinista committed Nov 10, 2023
1 parent 95640a4 commit 113a037
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
# "$Env:GYP_MSVS_VERSION": 2022
steps:
- name: Install ubuntu requirements
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand All @@ -20,11 +21,17 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Patch node-gyp
- name: Specify MSVS version
if: ${{ matrix.os == 'windows-latest' }}
shell: powershell
run: |
npm config set msvs_version 2022
echo "GYP_MSVS_VERSION=2022" >> $env:GITHUB_ENV
# - name: Patch node-gyp
# if: ${{ matrix.os == 'windows-latest' }}
# shell: powershell
# run: |
# npm config set msvs_version 2022
- run: npm ci
- run: npm run test-lib
- name: Run integration tests
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Patch node-gyp
- name: Specify MSVS version
if: ${{ matrix.os == 'windows-latest' }}
shell: powershell
run: |
npm config set msvs_version 2022
echo "GYP_MSVS_VERSION=2022" >> $env:GITHUB_ENV
# - name: Patch node-gyp
# if: ${{ matrix.os == 'windows-latest' }}
# shell: powershell
# run: |
# npm config set msvs_version 2022
- run: npm ci
- name: Release
env:
Expand Down

0 comments on commit 113a037

Please sign in to comment.