Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
0b203bd5
Unverified
Commit
0b203bd5
authored
May 01, 2023
by
Andrey Talman
Committed by
GitHub
May 01, 2023
Browse files
Adding windows wheel builds (#7540)
parent
0d75d9e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
2 deletions
+59
-2
.github/workflows/build-wheels-windows.yml
.github/workflows/build-wheels-windows.yml
+54
-0
packaging/pre_build_script.sh
packaging/pre_build_script.sh
+5
-2
No files found.
.github/workflows/build-wheels-windows.yml
0 → 100644
View file @
0b203bd5
name
:
Build Windows Wheels
on
:
pull_request
:
push
:
branches
:
-
nightly
-
main
-
release/*
tags
:
# NOTE: Binary build pipelines should only get triggered on release candidate builds
# Release candidate tags look like: v1.11.0-rc1
-
v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
workflow_dispatch
:
jobs
:
generate-matrix
:
uses
:
pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with
:
package-type
:
wheel
os
:
windows
test-infra-repository
:
pytorch/test-infra
test-infra-ref
:
main
build
:
needs
:
generate-matrix
strategy
:
fail-fast
:
false
matrix
:
include
:
-
repository
:
pytorch/vision
pre-script
:
packaging/pre_build_script.sh
env-script
:
packaging/windows/internal/vc_env_helper.bat
post-script
:
"
python
packaging/wheel/relocate.py"
smoke-test-script
:
test/smoke_test.py
package-name
:
torchvision
name
:
${{ matrix.repository }}
uses
:
pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
with
:
repository
:
${{ matrix.repository }}
ref
:
"
"
test-infra-repository
:
pytorch/test-infra
test-infra-ref
:
main
build-matrix
:
${{ needs.generate-matrix.outputs.matrix }}
pre-script
:
${{ matrix.pre-script }}
env-script
:
${{ matrix.env-script }}
post-script
:
${{ matrix.post-script }}
package-name
:
${{ matrix.package-name }}
smoke-test-script
:
${{ matrix.smoke-test-script }}
# Using "development" as trigger event so these binaries are not uploaded
# to official channels yet
trigger-event
:
development
secrets
:
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID
:
${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY
:
${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
packaging/pre_build_script.sh
View file @
0b203bd5
#!/bin/bash
if
[[
"
$(
uname
)
"
==
Darwin
||
"
$OSTYPE
"
==
"msys"
]]
;
then
if
[[
"
$(
uname
)
"
==
Darwin
]]
;
then
# Uninstall Conflicting jpeg brew formulae
jpeg_packages
=
$(
brew list |
grep
jpeg
)
echo
"Existing Jpeg-related Brew libraries"
...
...
@@ -8,10 +8,13 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
brew uninstall
--ignore-dependencies
--force
$pkg
||
true
done
conda
install
-yq
wget
fi
if
[[
"
$(
uname
)
"
==
Darwin
||
"
$OSTYPE
"
==
"msys"
]]
;
then
# Install libpng from Anaconda (defaults)
conda
install
${
CONDA_CHANNEL_FLAGS
}
libpng
"jpeg<=9b"
-y
conda
install
-yq
ffmpeg
=
4.2
-c
pytorch
conda
install
-yq
wget
else
# Install native CentOS libJPEG, freetype and GnuTLS
yum
install
-y
libjpeg-turbo-devel freetype gnutls
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment