Skip to content

Build test windows (Windows label) #51

Build test windows (Windows label)

Build test windows (Windows label) #51

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: |
$debugFolder = "C:\GitHubActionsRunner\debug"
if (!(Test-Path -Path $debugFolder)) {
New-Item -ItemType Directory -Path $debugFolder
}
Start-Job -ScriptBlock {
$tempFolder = "C:\GitHubActionsRunner\_work\_temp"
$debugFolder = "C:\GitHubActionsRunner\debug"
$fileCopied = $false
while (-not $fileCopied) {
$setupFile = Get-ChildItem -Path $tempFolder -Recurse -Filter "setup.ps1" -ErrorAction SilentlyContinue | Select-Object -First 1
if ($setupFile) {
Copy-Item -Path $setupFile.FullName -Destination $debugFolder -Force
Write-Output "setup.ps1 copied to debug folder: $($setupFile.FullName)"
$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]'