Skip to content

Commit

Permalink
try building libicu from source
Browse files Browse the repository at this point in the history
  • Loading branch information
xoudini committed Dec 15, 2024
1 parent 6526a70 commit 1ba9cb1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: [push, pull_request]

env:
PYICU_VERSION: "2.14"
_ICU_URL: https://github.com/unicode-org/icu/releases/download/release-76-1/icu4c-76_1-src.tgz
_ICU_SRC: /var/build/icu
_OUT_DIR: /var/build/out

jobs:
linux:
Expand All @@ -25,7 +28,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Fetch source
- name: Install libicu
run: |
wget -q -O ${_ICU_SRC}.tgz ${_ICU_URL}
gunzip -d < ${_ICU_SRC}.tgz | tar xvf -
cd icu/source
chmod +x runConfigureICU configure install-sh
./runConfigureICU Linux --prefix=${_OUT_DIR} --enable-static
gmake
gmake install
- name: Fetch pyicu source
run: git clone --branch=v${PYICU_VERSION} --depth=1 https://gitlab.pyicu.org/main/pyicu.git

- name: Build wheels
Expand All @@ -36,6 +49,8 @@ jobs:
CIBW_BUILD: ${{ matrix.cpy }}-${{ matrix.platform }}_${{ matrix.arch }}
# TODO: fix
CIBW_ARCHS_LINUX: auto
CIBW_ENVIRONMENT: >-
PKG_CONFIG_PATH="${_OUT_DIR}/lib/pkgconfig"
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 1ba9cb1

Please sign in to comment.