steps:
- name: Install prerequisits
- run: 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
+ run: |
+ 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
shell: bash
- name: Configure
- uses: actions/cache@v2
with:
path: |
- data/country_osm_grid.sql.gz
- monaco-latest.osm.pbf
+ {{ github.workspace }}/data/country_osm_grid.sql.gz
+ {{ github.workspace }}/monaco-latest.osm.pbf
key: nominatim-data-${{ steps.get-date.outputs.date }}
- uses: ./.github/actions/setup-postgresql
- uses: actions/cache@v2
with:
path: |
- data/country_osm_grid.sql.gz
- monaco-latest.osm.pbf
+ {{ github.workspace }}/data/country_osm_grid.sql.gz
+ {{ github.workspace }}/monaco-latest.osm.pbf
key: nominatim-data-${{ steps.get-date.outputs.date }}
- uses: ./.github/actions/setup-postgresql
- name: Create configuration
run: |
- echo '<?php' > settings/local.php
- echo " @define('CONST_Pyosmium_Binary', '/usr/lib/python3-pyosmium/pyosmium-get-changes');" >> settings/local.php
+ echo "NOMINATIM_PYOSMIUM_BINARY=/usr/lib/python3-pyosmium/pyosmium-get-changes" >> .env
working-directory: build
- name: Download import data