Skip to content

Commit

Permalink
remove windows stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Feb 27, 2024
1 parent 40a9055 commit e10a526
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 94 deletions.
62 changes: 9 additions & 53 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,56 +35,7 @@ jobs:
with:
path: dist/*.tar.gz

build_wheels_windows:
name: "${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cibw_build }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
cibw_build: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*"]
cibw_archs: ["AMD64", "x86", "ARM64"]
exclude:
- os: windows-latest
cibw_build: "cp38-*"
cibw_archs: "ARM64"

steps:
- name: "Set environment variables (Windows)"
shell: pwsh
run: |
(Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: "recursive"

- name: Install ZLIB
shell: pwsh
run: |
scripts/install_zlib.ps1
- name: Set up python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_BUILD: ${{ matrix.cibw_build }}
CIBW_BEFORE_ALL: mkdir openexr\build && cd openexr\build && cmake .. -DCMAKE_INSTALL_PREFIX=..\..\openexr-install && make && make install
CIBW_ENVIRONMENT: LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/openexr-install/lib64:${GITHUB_WORKSPACE}/openexr-install/lib

- uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

build_wheels_linux:
if: false # TODO: uncomment
name: "${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cibw_build }}"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -125,7 +76,6 @@ jobs:
path: wheelhouse/*.whl

build_wheels_macos:
if: false # TODO: uncomment
name: "${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cibw_build }}"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -236,7 +186,6 @@ jobs:
needs:
[
"build_sdist",
"build_wheels_windows",
"build_wheels_linux",
"build_wheels_macos",
"build_wheels_macos_arm64",
Expand All @@ -245,6 +194,14 @@ jobs:
steps:
- uses: actions/download-artifact@v3

- name: Set up python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install Twine
run: pip install twine

- name: Authenticate to Google Cloud
id: auth
uses: "google-github-actions/auth@v1"
Expand All @@ -253,9 +210,8 @@ jobs:

- name: Upload to Artifact Registry
run: |
# TODO: figure this out later with Rich
gcloud config set artifacts/repository OpenEXR
# gcloud config set artifacts/location <location>
gcloud config set artifacts/location us-west1
gcloud auth activate-service-account --key-file=$GOOGLE_GHA_CREDS_PATH
gcloud artifacts print-settings python > ~/.pypirc
python -m twine upload --repository OpenEXR artifact/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ wheelhouse/
dist/
MANIFEST
/*.whl
*.DS_Store
41 changes: 0 additions & 41 deletions scripts/install_zlib.ps1

This file was deleted.

0 comments on commit e10a526

Please sign in to comment.