]> git.openstreetmap.org Git - nominatim.git/blob - .github/actions/build-nominatim/action.yml
bdd: move import tests from scenes to grid descriptions
[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     cmake-args:
9         description: 'Additional options to hand to cmake'
10         required: false
11         default: ''
12
13 runs:
14     using: "composite"
15
16     steps:
17         - name: Install prerequisites
18           run: |
19             sudo apt-get install -y -qq libboost-system-dev libboost-filesystem-dev libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev libicu-dev
20             if [ "x$UBUNTUVER" == "x18" ]; then
21                 pip3 install python-dotenv psycopg2==2.7.7 jinja2==2.8 psutil==5.4.2 pyicu osmium PyYAML==5.1 datrie
22             else
23                 sudo apt-get install -y -qq python3-icu python3-datrie python3-pyosmium python3-jinja2 python3-psutil python3-psycopg2 python3-dotenv python3-yaml
24             fi
25           shell: bash
26           env:
27             UBUNTUVER: ${{ inputs.ubuntu }}
28             CMAKE_ARGS: ${{ inputs.cmake-args }}
29
30         - name: Configure
31           run: mkdir build && cd build && cmake $CMAKE_ARGS ../Nominatim
32           shell: bash
33           env:
34             CMAKE_ARGS: ${{ inputs.cmake-args }}
35
36         - name: Build
37           run: |
38               make -j2 all
39               sudo make install
40           shell: bash
41           working-directory: build