]> git.openstreetmap.org Git - nominatim.git/blob - .github/actions/build-nominatim/action.yml
18bdc335b42fa0a4f46e1d5a08b7b5ed58c66751
[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
10             sudo pip install PyICU
11           shell: bash
12
13         - name: Download dependencies
14           run: |
15               if [ ! -f country_grid.sql.gz ]; then
16                   wget --no-verbose https://www.nominatim.org/data/country_grid.sql.gz
17               fi
18               cp country_grid.sql.gz Nominatim/data/country_osm_grid.sql.gz
19           shell: bash
20
21         - name: Configure
22           run: mkdir build && cd build && cmake ../Nominatim
23           shell: bash
24
25         - name: Build
26           run: |
27               make -j2 all
28               sudo make install
29           shell: bash
30           working-directory: build