]> git.openstreetmap.org Git - nominatim.git/blob - .github/actions/build-nominatim/action.yml
optimize indexes for interpolation lines
[nominatim.git] / .github / actions / build-nominatim / action.yml
1 name: 'Build Nominatim'
2
3 inputs:
4     ubuntu:
5         description: 'Version of Ubuntu to install on'
6         required: false
7         default: '20'
8
9 runs:
10     using: "composite"
11
12     steps:
13         - name: Install prerequisites
14           run: |
15             sudo apt-get install -y -qq libboost-system-dev libboost-filesystem-dev libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev libicu-dev
16             if [ "x$UBUNTUVER" == "x18" ]; then
17                 pip3 install python-dotenv psycopg2==2.7.7 jinja2==2.8 psutil==5.4.2 pyicu osmium PyYAML==5.1 datrie
18             else
19                 sudo apt-get install -y -qq python3-icu python3-datrie python3-pyosmium python3-jinja2 python3-psutil python3-psycopg2 python3-dotenv python3-yaml
20             fi
21           shell: bash
22           env:
23             UBUNTUVER: ${{ inputs.ubuntu }}
24
25         - name: Download dependencies
26           run: |
27               if [ ! -f country_grid.sql.gz ]; then
28                   wget --no-verbose https://www.nominatim.org/data/country_grid.sql.gz
29               fi
30               cp country_grid.sql.gz Nominatim/data/country_osm_grid.sql.gz
31           shell: bash
32
33         - name: Configure
34           run: mkdir build && cd build && cmake ../Nominatim
35           shell: bash
36
37         - name: Build
38           run: |
39               make -j2 all
40               sudo make install
41           shell: bash
42           working-directory: build