]> git.openstreetmap.org Git - nominatim.git/blob - .github/actions/build-nominatim/action.yml
release 4.5.0.post7
[nominatim.git] / .github / actions / build-nominatim / action.yml
1 name: 'Build Nominatim'
2
3 inputs:
4     dependencies:
5         description: 'Where to install dependencies from (pip/apt)'
6         required: false
7         default: 'pip'
8
9 runs:
10     using: "composite"
11
12     steps:
13         - name: Clean out the disk
14           run: |
15             sudo rm -rf /opt/hostedtoolcache/go /opt/hostedtoolcache/CodeQL /usr/lib/jvm /usr/local/share/chromium /usr/local/lib/android
16             df -h
17           shell: bash
18         - name: Install general prerequisites
19           run: |
20             sudo apt-get install -y -qq libspatialite-dev libsqlite3-mod-spatialite libicu-dev virtualenv python3-dev osm2pgsql
21           shell: bash
22
23         - name: Install prerequisites from apt
24           run: |
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
26           shell: bash
27           if: inputs.dependencies == 'apt'
28
29         - name: Setup virtual environment (for pip)
30           run: |
31             virtualenv venv
32             ./venv/bin/pip install -U pip
33           shell: bash
34           if: inputs.dependencies == 'pip'
35
36         - name: Setup virtual environment (for apt)
37           run: |
38             virtualenv venv --system-site-packages
39           shell: bash
40           if: inputs.dependencies == 'apt'
41
42         - name: Build nominatim
43           run: ./venv/bin/pip install Nominatim/packaging/nominatim-{api,db}
44           shell: bash