18
18
linux-wheel :
19
19
name : Build manylinux_2_28
20
20
strategy :
21
+ fail-fast : false # NOTE primary reason for fail fast is the failure in the clean up step. Once fixed, consider true
21
22
matrix :
22
23
# TODO convert this to be matrix-friendly. Note it's a bit tricky since
23
24
# we'd ideally not reexecute the compile step multiple times, but it
@@ -39,15 +40,16 @@ jobs:
39
40
- run : cd /proj && PYTHONPATH=/buildscripts /buildscripts/wheel-linux.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
40
41
- run : cd /proj && if [[ -f ./python_wrapper/post-build.sh ]] ; then ./python_wrapper/post-build.sh ; fi
41
42
- run : cd /proj && /buildscripts/test-wheel.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
42
- - run : cd /proj && /buildscripts/upload-pypi.sh ./python_wrapper/buildconfig
43
+ - run : cd /proj && PYTHONPATH=/buildscripts /buildscripts/upload-pypi.sh ./python_wrapper/buildconfig
43
44
env :
44
45
TWINE_USERNAME : __token__
45
- TWINE_PASSWORD : ${{ secrets.PYPI_TEST_API_TOKEN }}
46
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
46
47
# NOTE temporary thing until all the mess gets cleared
47
48
- run : rm -rf ./* ./.git ./.github
48
49
macos-wheel :
49
50
name : Build macos wheel
50
51
strategy :
52
+ fail-fast : false # NOTE primary reason for fail fast is the failure in the clean up step. Once fixed, consider true
51
53
matrix :
52
54
arch_type : [ARM64, X64]
53
55
python_version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
@@ -70,18 +72,19 @@ jobs:
70
72
token : ${{ secrets.GH_REPO_READ_TOKEN }}
71
73
- run : rm -rf proj && git clone --depth=1 --branch="${GITHUB_REF#refs/heads/}" https://github.com/$GITHUB_REPOSITORY proj
72
74
- run : |
73
- cd proj && $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/prepare_deps.sh ./python_wrapper/buildconfig 3.11
75
+ uv python install python"${{ matrix.python_version }}"
76
+ cd proj && $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/prepare_deps.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
74
77
- run : |
75
78
cd proj
76
79
if [[ -f ./python_wrapper/pre-compile.sh ]] ; then ./python_wrapper/pre-compile.sh ; fi
77
80
PATH="$PATH:$GITHUB_WORKSPACE/ecbuild/bin/" $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/compile.sh ./python_wrapper/buildconfig
78
81
- run : |
79
82
cd proj
80
- rm -rf /tmp/buildvenv && uv python install python3.11 && uv venv --python python3.11 /tmp/buildvenv && source /tmp/buildvenv/bin/activate && uv pip install build twine delocate
81
- PYTHONPATH=$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/wheel-linux.sh ./python_wrapper/buildconfig 3.11
83
+ rm -rf /tmp/buildvenv && uv venv --python python"${{ matrix.python_version }}" /tmp/buildvenv && source /tmp/buildvenv/bin/activate && uv pip install build twine delocate setuptools requests
84
+ PYTHONPATH=$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/wheel-linux.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
82
85
if [[ -f ./python_wrapper/post-build.sh ]] ; then ./python_wrapper/post-build.sh ; fi
83
- $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/test-wheel.sh ./python_wrapper/buildconfig 3.11
84
- $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/upload-pypi.sh ./python_wrapper/buildconfig
86
+ $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/test-wheel.sh ./python_wrapper/buildconfig "${{ matrix.python_version }}"
87
+ PYTHONPATH=$GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts $GITHUB_WORKSPACE/ci-utils/wheelmaker/buildscripts/upload-pypi.sh ./python_wrapper/buildconfig
85
88
env:
86
89
TWINE_USERNAME: __token__
87
90
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments