feat: Support for Visual Studio 2026 (18.x) to enable node-gyp to work with the latest Visual Studio preview and release versions. #868
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | |
| name: visual-studio | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| visual-studio: | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 8 | |
| matrix: | |
| include: | |
| - os: windows-2022 | |
| msvs-version: 2022 | |
| - os: windows-2025 | |
| msvs-version: 2022 # Fix this when Visual Studio 2025 is released | |
| - os: windows-11-arm | |
| msvs-version: 2022 # Fix this when Visual Studio 2025 is released | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| - name: Use Python 3 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Run Node tests | |
| shell: pwsh | |
| run: npm run test --python="${env:pythonLocation}\\python.exe" --msvs-version="${{ matrix.msvs-version }}" |