Skip to content

Commit

Permalink
Fix node16 deps
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Feb 27, 2024
1 parent e10a526 commit fca3455
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,23 @@ jobs:
os: [ubuntu-latest]
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"

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

- name: Build sdist
run: |
pipx run build --sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels-sdist
path: dist/*.tar.gz

build_wheels_linux:
Expand All @@ -47,7 +48,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"
Expand All @@ -59,7 +60,7 @@ jobs:
platforms: all

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

Expand All @@ -71,8 +72,9 @@ jobs:
CIBW_BEFORE_ALL: mkdir openexr/build && cd openexr/build && cmake .. -DCMAKE_INSTALL_PREFIX=../../openexr-install && make all install
CIBW_ENVIRONMENT: LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/openexr-install/lib64:${GITHUB_WORKSPACE}/openexr-install/lib

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.cibw_build }}-${{ matrix.cibw_archs }}
path: wheelhouse/*.whl

build_wheels_macos:
Expand All @@ -88,13 +90,13 @@ jobs:
SYSTEM_VERSION_COMPAT: 0 # https://github.com/actions/setup-python/issues/469#issuecomment-1192522949
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"

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

Expand Down Expand Up @@ -122,8 +124,9 @@ jobs:
echo "DONE."
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.cibw_build }}-${{ matrix.cibw_archs }}
path: wheelhouse/*.whl

build_wheels_macos_arm64:
Expand All @@ -137,12 +140,12 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"

Expand Down Expand Up @@ -176,8 +179,9 @@ jobs:
echo "DONE."
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.cibw_build }}-${{ matrix.cibw_archs }}
path: ./wheelhouse/*.whl

upload_to_pypi:
Expand All @@ -192,10 +196,14 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: wheels
pattern: wheels-*
merge-multiple: true

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

Expand All @@ -214,4 +222,4 @@ jobs:
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/*
python -m twine upload --repository OpenEXR wheels/*

0 comments on commit fca3455

Please sign in to comment.