-
Notifications
You must be signed in to change notification settings - Fork 604
Build Windows pybind in CI #11018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Windows pybind in CI #11018
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,30 @@ jobs: | |
|
||
./install_requirements.sh > /dev/null | ||
cmake --preset ${{ matrix.preset }} | ||
cmake --build cmake-out -j$(( $(nproc) - 1 )) | ||
|
||
windows: | ||
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
preset: [pybind] | ||
with: | ||
job-name: build | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | ||
submodules: recursive | ||
timeout: 90 | ||
script: | | ||
set -eux | ||
conda init powershell | ||
powershell -Command "& { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. very nice! So it still doesn't work via bash? If so, very curious why powershell specifically is needed... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah there are some compiler errors when using bash. I think this is good for now, we can look into the bash issue later |
||
\$ErrorActionPreference = 'Stop' | ||
Set-PSDebug -Trace 1 | ||
|
||
conda create --yes --quiet -n et python=3.12 | ||
conda activate et | ||
|
||
python install_requirements.py | ||
cmake --preset ${{ matrix.preset }} | ||
\$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1 | ||
cmake --build cmake-out -j \$numCores | ||
}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth adding
llm
now?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll follow up, just want to get this in first