Skip to content

Commit 36e9969

Browse files
author
github-actions
committed
chore: install libpostal in user prefix during CI
1 parent f563c75 commit 36e9969

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ jobs:
3737
git clone https://github.com/openvenues/libpostal.git /tmp/libpostal
3838
cd /tmp/libpostal
3939
./bootstrap.sh
40-
./configure --datadir=/usr/local/share/libpostal
40+
./configure --prefix="$HOME/.local" --datadir="$HOME/.local/share/libpostal"
4141
make
42-
sudo make install
43-
sudo ldconfig
42+
make install
43+
# Export paths so subsequent steps can find libpostal
44+
echo "LIBPOSTAL_DATA_DIR=$HOME/.local/share/libpostal" >> "$GITHUB_ENV"
45+
echo "LD_LIBRARY_PATH=$HOME/.local/lib:${LD_LIBRARY_PATH:-}" >> "$GITHUB_ENV"
46+
echo "PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:${PKG_CONFIG_PATH:-}" >> "$GITHUB_ENV"
47+
echo "CPATH=$HOME/.local/include:${CPATH:-}" >> "$GITHUB_ENV"
4448
4549
- name: Install dependencies
4650
run: uv sync --group dev --all-extras

0 commit comments

Comments
 (0)