1 name: 'Build Nominatim'
5 description: 'Where to install dependencies from (pip/apt)'
13 - name: Clean out the disk
15 sudo rm -rf /opt/hostedtoolcache/go /opt/hostedtoolcache/CodeQL /usr/lib/jvm /usr/local/share/chromium /usr/local/lib/android
18 - name: Install general prerequisites
20 sudo apt-get install -y -qq libspatialite-dev libsqlite3-mod-spatialite libicu-dev virtualenv python3-dev osm2pgsql
23 - name: Install prerequisites from apt
25 sudo apt-get install -y -qq python3-icu python3-datrie python3-jinja2 python3-psutil python3-dotenv python3-yaml python3-sqlalchemy python3-psycopg python3-asyncpg
27 if: inputs.dependencies == 'apt'
29 - name: Setup virtual environment (for pip)
32 ./venv/bin/pip install -U pip
34 if: inputs.dependencies == 'pip'
36 - name: Setup virtual environment (for apt)
38 virtualenv venv --system-site-packages
40 if: inputs.dependencies == 'apt'
42 - name: Build nominatim
43 run: ./venv/bin/pip install Nominatim/packaging/nominatim-{api,db}