Skip to content

Build test windows (Windows label) #48

Build test windows (Windows label)

Build test windows (Windows label) #48

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: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Copy setup.ps1 to debug folder
run: |
if (!(Test-Path -Path "C:\GitHubActionsRunner\debug")) {
New-Item -ItemType Directory -Path "C:\GitHubActionsRunner\debug"
}
$tempFolder = "C:\GitHubActionsRunner\_work\_temp"
$debugFolder = "C:\GitHubActionsRunner\debug"
if (Test-Path -Path "$tempFolder") {
Get-ChildItem -Path $tempFolder -Recurse -Filter setup.ps1 | ForEach-Object {
Copy-Item -Path $_.FullName -Destination $debugFolder -Force
}
}
- name: Build Triton
run: |
cd python
pip install -U wheel pybind11 certifi cython ninja cmake
python -m certifi
pip install --no-build-isolation '.[build]'