chore: prepare glfw 7.1.3 #109
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
| name: Test | |
| defaults: | |
| run: | |
| shell: bash | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| unit-tests: | |
| name: Unit Tests (${{ matrix.target }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: windows-x64 | |
| os: windows-2022 | |
| node_arch: x64 | |
| archflags: '' | |
| - target: windows-arm64 | |
| os: windows-11-arm | |
| node_arch: arm64 | |
| archflags: '' | |
| - target: linux-x64 | |
| os: ubuntu-22.04 | |
| node_arch: x64 | |
| archflags: '' | |
| - target: linux-arm64 | |
| os: ubuntu-22.04-arm | |
| node_arch: arm64 | |
| archflags: '' | |
| - target: darwin-x64 | |
| os: macos-26 | |
| node_arch: x64 | |
| archflags: '-arch x86_64' | |
| - target: darwin-arm64 | |
| os: macos-26 | |
| node_arch: arm64 | |
| archflags: '-arch arm64' | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Fetch Repository | |
| uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.13.0 | |
| architecture: ${{ matrix.node_arch }} | |
| cache: 'npm' | |
| - name: Print Native Target | |
| run: | | |
| echo "runner=$(uname -s)-$(uname -m)" | |
| node -p "'node=' + process.version + ' platform=' + process.platform + ' arch=' + process.arch" | |
| npm config get arch | |
| - name: Install Modules | |
| run: npm ci | |
| - name: Ubuntu Install Wayland | |
| if: matrix.target == 'linux-x64' || matrix.target == 'linux-arm64' | |
| run: sudo apt-get install -y libwayland-dev libgles2-mesa-dev | |
| - name: Build Current Binary | |
| run: npm run build:rebuild | |
| env: | |
| npm_config_arch: ${{ matrix.node_arch }} | |
| ARCHFLAGS: ${{ matrix.archflags }} | |
| - name: Install Mesa Surfaceless EGL - Mac | |
| if: matrix.target == 'darwin-x64' || matrix.target == 'darwin-arm64' | |
| run: bash .github/scripts/setup-macos-gl.sh ${{ matrix.node_arch }} | |
| - name: Install OpenGL Compatibility Pack - Windows ARM | |
| shell: pwsh | |
| if: matrix.target == 'windows-arm64' | |
| run: | | |
| $url = "https://github.com/microsoft/OpenCLOn12/releases/download/v1.2404.1.0/Universal_D3DMappingLayers_1.2404.1.0_arm64.appx" | |
| $file = "d3d-mapping-layers-arm64.appx" | |
| Invoke-WebRequest -Uri $url -OutFile $file | |
| Add-AppxPackage -Path $file | |
| Get-AppxPackage Microsoft.D3DMappingLayers | Format-List Name,PackageFullName,Architecture,InstallLocation | |
| - uses: ssciwr/setup-mesa-dist-win@v3 | |
| if: matrix.target == 'windows-x64' | |
| with: | |
| version: '26.1.3' | |
| - name: Run Unit Tests - Windows | |
| if: matrix.target == 'windows-x64' || matrix.target == 'windows-arm64' | |
| timeout-minutes: 5 | |
| run: npm run test:ci | |
| - name: Run Unit Tests - Linux | |
| if: matrix.target == 'linux-x64' || matrix.target == 'linux-arm64' | |
| run: xvfb-run --auto-servernum npm run test:ci | |
| - name: Run Unit Tests - Mac | |
| if: matrix.target == 'darwin-x64' || matrix.target == 'darwin-arm64' | |
| timeout-minutes: 5 | |
| run: node --test "ts/glfw.test.ts" "ts/runtime-window.test.ts" |