From 63b654a1737637dfecbcd7fd91680d575d171bfa Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 10 Sep 2022 19:51:26 -0700 Subject: [PATCH] Update ci to install pyicu --- .github/workflows/build.yaml | 13 +++++++++++++ .github/workflows/package.yaml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cb723f6..3551d4d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -80,10 +80,23 @@ jobs: run: | choco install -y zip if: runner.os == 'Windows' + - name: Install macos dependencies + run: | + brew install icu4c pkg-config + shell: bash + if: runner.os == 'macOS' + - name: Install linux dependencies + run: | + sudo apt-get install pkg-config libicu-dev + shell: bash + if: runner.os == 'Linux' - name: Build and install PyPi packages run: | make clean pydist + export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"; + export PATH="/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:$PATH" + python3 -m pip install --no-binary=:pyicu: pyicu python -m pip install "dist/$(python setup.py --fullname)-py3-none-any.whl[all]" - name: build diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index b4987e7..59d34c8 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -41,10 +41,23 @@ jobs: run: | choco install -y zip if: runner.os == 'Windows' + - name: Install macos dependencies + run: | + brew install icu4c pkg-config + shell: bash + if: runner.os == 'macOS' + - name: Install linux dependencies + run: | + sudo apt-get install pkg-config libicu-dev + shell: bash + if: runner.os == 'Linux' - name: Build, Install and Test PyPi packages run: | make clean pydist + export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"; + export PATH="/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:$PATH" + python3 -m pip install --no-binary=:pyicu: pyicu python -m pip install "dist/$(python setup.py --fullname)-py3-none-any.whl[all]" echo "CT_FULL_NAME=$(python setup.py --fullname)" >> $GITHUB_ENV python -m flake8