Build test windows (Windows label) #50
Workflow file for this run
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: Build on Windows | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: read-all | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: Windows | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Monitor _temp folder and copy setup.ps1 | |
| shell: powershell | |
| run: | | |
| # Ensure debug folder exists | |
| $debugFolder = "C:\GitHubActionsRunner\debug" | |
| if (!(Test-Path -Path $debugFolder)) { | |
| New-Item -ItemType Directory -Path $debugFolder | |
| } | |
| # Monitor _temp folder for setup.ps1 and copy it as soon as it appears | |
| $tempFolder = "C:\GitHubActionsRunner\_work\_temp" | |
| $fileCopied = $false | |
| while (-not $fileCopied) { | |
| if (Test-Path -Path "$tempFolder\setup.ps1") { | |
| Copy-Item -Path "$tempFolder\setup.ps1" -Destination "$debugFolder" -Force | |
| Write-Output "setup.ps1 copied to debug folder." | |
| $fileCopied = $true | |
| } | |
| Start-Sleep -Seconds 1 | |
| } | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.9' | |
| - name: Build Triton | |
| run: | | |
| cd python | |
| pip install -U wheel pybind11 certifi cython ninja cmake | |
| python -m certifi | |
| pip install --no-build-isolation '.[build]' |