forked from jamesbowman/openexrpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
10 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -236,7 +186,6 @@ jobs: | |
needs: | ||
[ | ||
"build_sdist", | ||
"build_wheels_windows", | ||
"build_wheels_linux", | ||
"build_wheels_macos", | ||
"build_wheels_macos_arm64", | ||
|
@@ -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" | ||
|
@@ -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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ wheelhouse/ | |
dist/ | ||
MANIFEST | ||
/*.whl | ||
*.DS_Store |
This file was deleted.
Oops, something went wrong.