Skip to content

Commit b54309c

Browse files
committed
Update workflow by configuring XML toolchain properly
1 parent 9cd7ae4 commit b54309c

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/linuxbrew.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,23 @@ jobs:
2828
- name: Install build dependencies
2929
run: |
3030
brew update
31-
brew install python@${{ matrix.python }} gcc libxml2 libxmlsec1 pkg-config
31+
brew install python@${{ matrix.python }} gcc libxml2 libxslt libxmlsec1 pkg-config
3232
echo "/home/linuxbrew/.linuxbrew/opt/python@${{ matrix.python }}/libexec/bin" >> $GITHUB_PATH
3333
34+
- name: Configure Homebrew XML toolchain
35+
run: |
36+
echo "PKG_CONFIG_PATH=$(brew --prefix libxml2)/lib/pkgconfig:$(brew --prefix libxslt)/lib/pkgconfig" >> $GITHUB_ENV
37+
echo "CPPFLAGS=-I$(brew --prefix libxml2)/include -I$(brew --prefix libxslt)/include" >> $GITHUB_ENV
38+
echo "CFLAGS=-I$(brew --prefix libxml2)/include -I$(brew --prefix libxslt)/include" >> $GITHUB_ENV
39+
echo "LDFLAGS=-L$(brew --prefix libxml2)/lib -L$(brew --prefix libxslt)/lib" >> $GITHUB_ENV
40+
echo "$(brew --prefix libxml2)/bin" >> $GITHUB_PATH
41+
echo "$(brew --prefix libxslt)/bin" >> $GITHUB_PATH
42+
3443
- name: Build wheel
3544
run: |
3645
python3 -m venv build_venv
3746
source build_venv/bin/activate
3847
pip3 install --upgrade setuptools wheel build
39-
export CFLAGS="-I$(brew --prefix)/include"
40-
export LDFLAGS="-L$(brew --prefix)/lib"
4148
python3 -m build
4249
rm -rf build/
4350

0 commit comments

Comments
 (0)