Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- run: echo "CI (CPU) success"

build-cpu-windows:
runs-on: windows-latest
runs-on: windows-2022
name: ${{ matrix.name }}
strategy:
fail-fast: false
Expand All @@ -99,14 +99,18 @@ jobs:
#- { compiler: "clang++", build: "Release", name: "CPU (Windows) (clang, Release)" }
#- { compiler: "clang-cl", build: "Debug", name: "CPU (Windows) (clang-cl, Debug)" }
#- { compiler: "clang-cl", build: "Release", name: "CPU (Windows) (clang-cl, Release)" }

steps:
- name: Checkout stdexec (Windows)
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Build and test CPU schedulers (Windows)
shell: pwsh
run: .github/workflows/test-windows.ps1 -Compiler '${{ matrix.compiler }}' -Config '${{ matrix.build }}'
run: |
docker pull rapidsai/devcontainers:24.08-cuda12.4-cl14.39-windows2022
docker run --isolation=process -v "$(pwd):C:/stdexec" rapidsai/devcontainers:24.08-cuda12.4-cl14.28-windows2022 powershell C:/stdexec/.github/workflows/test-windows.ps1 -Compiler '${{ matrix.compiler }}' -Config '${{ matrix.build }}'

ci-cpu-windows:
runs-on: windows-latest
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/test-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,7 @@ function Invoke-NativeCommand($Command) {
}
}

$VSVersion = 2022
$VSEdition = 'Enterprise'
$Architecture = 'x64'

Push-Location "C:/Program Files/Microsoft Visual Studio/$VSVersion/$VSEdition/VC/Auxiliary/Build"
$VCVersion = Get-Content 'Microsoft.VCToolsVersion.default.txt'
cmd /c "vcvarsall.bat $Architecture -vcvars_ver=$VCVersion > nul & set" | ForEach-Object {
if ($_ -match '^(.+?)=(.*)') {
Set-Item -Force -Path "ENV:$($matches[1])" -Value $matches[2]
}
}
Pop-Location

if ($Compiler -ne "cl") {
$ENV:CXX=$Compiler
}
Set-Location -Path "$PSScriptRoot/../.." -PassThru

if (Test-Path -PathType Container $BuildDirectory) {
Remove-Item -Recurse $BuildDirectory | Out-Null
Expand Down