Skip to content

Commit

Permalink
install lib postal
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Jul 5, 2024
1 parent 1e9eaf6 commit 14dcb3d
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down Expand Up @@ -45,52 +44,33 @@ jobs:
run: |
brew install curl autoconf automake libtool pkg-config
- name: Install windows build packages
if: ${{ matrix.os == 'windows-latest' }}
- name: Install libpostal
run: |
pacman -S autoconf automake curl git make libtool gcc mingw-w64-x86_64-gcc
mkdir /tmp/libpostal_code
mkdir /tmp/libpostal_datadir
- name: Install libpostal
run: git clone https://github.com/openvenues/libpostal
working-directory: /tmp/libpostal_code

- name: Install libpostal
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
mkdir /tmp/libpostal_code
mkdir /tmp/libpostal_datadir
cd /tmp/libpostal_code
git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
./configure --datadir=/tmp/libpostal_datadir
make -j4
sudo make install
sudo ldconfig /usr/local/lib
working-directory: /tmp/libpostal_code/libpostal

- name: Install libpostal
if: ${{ matrix.os == 'macos-latest' }}
run: |
mkdir /tmp/libpostal_code
mkdir /tmp/libpostal_datadir
cd /tmp/libpostal_code
git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
./configure --datadir=/tmp/libpostal_datadir --disable-sse2
make -j4
sudo make install
- name: Install libpostal
if: ${{ matrix.os == 'windows-latest' }}
run: |
mkdir /tmp/libpostal_code
mkdir /tmp/libpostal_datadir
cd /tmp/libpostal_code
git clone https://github.com/openvenues/libpostal
cd libpostal
cp -rf windows/* ./
./bootstrap.sh
./configure --datadir=/tmp/libpostal_datadir
make -j4
make install
- name: CLI tests
run: |
go mod tidy
Expand Down

0 comments on commit 14dcb3d

Please sign in to comment.