]> git.openstreetmap.org Git - nominatim.git/blob - .github/actions/build-nominatim/action.yml
actions: add import on ubuntu 18.04
[nominatim.git] / .github / actions / build-nominatim / action.yml
1 name: 'Build Nominatim'
2
3 runs:
4     using: "composite"
5
6     steps:
7         - name: Install prerequisites
8           run: |
9             sudo apt-get install -y -qq libboost-system-dev libboost-filesystem-dev libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev libicu-dev python3-psycopg2 python3-pyosmium python3-dotenv python3-psutil python3-jinja2 python3-icu
10           shell: bash
11
12         - name: Download dependencies
13           run: |
14               if [ ! -f country_grid.sql.gz ]; then
15                   wget --no-verbose https://www.nominatim.org/data/country_grid.sql.gz
16               fi
17               cp country_grid.sql.gz Nominatim/data/country_osm_grid.sql.gz
18           shell: bash
19
20         - name: Configure
21           run: mkdir build && cd build && cmake ../Nominatim
22           shell: bash
23
24         - name: Build
25           run: |
26               make -j2 all
27               sudo make install
28           shell: bash
29           working-directory: build