Skip to content

Build test windows (Windows label) #49

Build test windows (Windows label)

Build test windows (Windows label) #49

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: pwsh
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]'