Skip to content
Merged
7 changes: 5 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,10 @@ 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
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
7 changes: 5 additions & 2 deletions .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,7 +64,10 @@ 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
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
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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_$(GLIBC_VERSION)_x86_64.manylinux2014_x86_64",
}),
strip_path_prefixes = ["src"],
description_file=":package_description",
Expand Down
Loading