Skip to content

Commit

Permalink
Install libmaxminddb-dev with apt
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Nov 14, 2024
1 parent 7297c4f commit 2e6124c
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,12 @@ jobs:
with:
submodules: true

- name: Install libmaxminddb
run: |
mkdir -p "$HOME/libmaxminddb"
git clone --recursive https://github.com/maxmind/libmaxminddb.git
cd libmaxminddb
./bootstrap
./configure --prefix="$HOME/libmaxminddb"
make
make install
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libmaxminddb-dev


- name: Build extension
run: |
export CFLAGS="-L$HOME/libmaxminddb/lib"
export CPPFLAGS="-I$HOME/libmaxminddb/include"
cd ext
phpize
./configure --with-maxminddb --enable-maxminddb-debug
Expand Down

0 comments on commit 2e6124c

Please sign in to comment.