Skip to content
Merged
8 changes: 6 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-24.04, macos-13, macos-14]
os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand Down Expand Up @@ -64,7 +64,11 @@ jobs:
env:
TARGET_PYTHON: ${{ matrix.python-version }}
run: |
bazel build --define TARGET_VERSION="$(python -c "print(\"py${TARGET_PYTHON}\".replace(\".\", \"\"))")" --define VERSION="$(cat version/version.txt)" :tesseract_decoder_wheel
glibc_version=$(ldd --version | awk '/ldd/{print $NF}')
export GLIBC_VERSION="${glibc_version//./_}"
echo $GLIBC_VERSION
sed "s/^MANYLINUX_VERSION.*/MANYLINUX_VERSION=\"manylinux_${GLIBC_VERSION}_x86_64.manylinux2014_x86_64\"/" BUILD -i || true
bazel build --define GLIBC_VERSION=$GLIBC_VERSION --define TARGET_VERSION="$(python -c "print(\"py${TARGET_PYTHON}\".replace(\".\", \"\"))")" --define VERSION="$(cat version/version.txt)" :tesseract_decoder_wheel

- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/stable-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-24.04, macos-13, macos-14]
os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
python-version: ['3.10', '3.11', '3.12']

steps:
Expand Down Expand Up @@ -64,6 +64,10 @@ jobs:
env:
TARGET_PYTHON: ${{ matrix.python-version }}
run: |
glibc_version=$(ldd --version | awk '/ldd/{print $NF}')
export GLIBC_VERSION="${glibc_version//./_}"
echo $GLIBC_VERSION
sed "s/^MANYLINUX_VERSION.*/MANYLINUX_VERSION=\"manylinux_${GLIBC_VERSION}_x86_64.manylinux2014_x86_64\"/" BUILD -i || true
bazel build --define TARGET_VERSION="$(python -c "print(\"py${TARGET_PYTHON}\".replace(\".\", \"\"))")" --define VERSION="$(cat version/version.txt)" :tesseract_decoder_wheel

- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
Expand Down
4 changes: 3 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ filegroup(
visibility = ["//visibility:public"],
)

MANYLINUX_VERSION="manylinux_2_17_x86_64.manylinux2014_x86_64"

py_wheel(
name="tesseract_decoder_wheel",
distribution = "tesseract_decoder",
Expand All @@ -29,7 +31,7 @@ py_wheel(
":macos_arm": "macosx_11_0_arm64",
":macos_x86": "macosx_10_13_x86_64",
"@platforms//os:windows": "win32",
"@platforms//os:linux": "manylinux_2_17_x86_64.manylinux2014_x86_64",
"@platforms//os:linux": MANYLINUX_VERSION,
}),
strip_path_prefixes = ["src"],
description_file=":package_description",
Expand Down
Loading