]> git.openstreetmap.org Git - nominatim.git/blob - .github/actions/build-nominatim/action.yml
github actions: need dotenv
[nominatim.git] / .github / actions / build-nominatim / action.yml
1 name: 'Build Nominatim'
2
3 runs:
4     using: "composite"
5
6     steps:
7         - name: Install prerequisits
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 python3-psycopg2 python3-pyosmium php-symfony-dotenv
10           shell: bash
11
12         - name: Configure
13           run: mkdir build && cd build && cmake ..
14           shell: bash
15
16         - name: Build
17           run: |
18               make -j2 all
19               ./utils/setup.php --setup-website
20           shell: bash
21           working-directory: build
22
23         - name: Download dependencies
24           run: |
25               if [ ! -f data/country_osm_grid.sql.gz ]; then
26                   wget --no-verbose -O data/country_osm_grid.sql.gz https://www.nominatim.org/data/country_grid.sql.gz
27               fi
28           shell: bash
29