mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 05:14:07 +00:00
actions: cache compiled osm2pgsql binary
This commit is contained in:
11
.github/workflows/ci-tests.yml
vendored
11
.github/workflows/ci-tests.yml
vendored
@@ -68,8 +68,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dependencies: ${{ matrix.dependencies }}
|
dependencies: ${{ matrix.dependencies }}
|
||||||
|
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/usr/local/bin/osm2pgsql
|
||||||
|
key: osm2pgsql-bin-22-1
|
||||||
|
if: matrix.ubuntu == '22'
|
||||||
|
|
||||||
- name: Compile osm2pgsql
|
- name: Compile osm2pgsql
|
||||||
run: |
|
run: |
|
||||||
|
if [ ! -f /usr/local/bin/osm2pgsql ]; then
|
||||||
sudo apt-get install -y -qq libboost-system-dev libboost-filesystem-dev libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev libicu-dev liblua${LUA_VERSION}-dev lua-dkjson nlohmann-json3-dev
|
sudo apt-get install -y -qq libboost-system-dev libboost-filesystem-dev libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev libicu-dev liblua${LUA_VERSION}-dev lua-dkjson nlohmann-json3-dev
|
||||||
mkdir osm2pgsql-build
|
mkdir osm2pgsql-build
|
||||||
cd osm2pgsql-build
|
cd osm2pgsql-build
|
||||||
@@ -81,6 +89,9 @@ jobs:
|
|||||||
sudo make install
|
sudo make install
|
||||||
cd ../..
|
cd ../..
|
||||||
rm -rf osm2pgsql-build
|
rm -rf osm2pgsql-build
|
||||||
|
else
|
||||||
|
sudo apt-get install -y -qq libexpat1 liblua${LUA_VERSION}
|
||||||
|
fi
|
||||||
if: matrix.ubuntu == '22'
|
if: matrix.ubuntu == '22'
|
||||||
env:
|
env:
|
||||||
LUA_VERSION: ${{ matrix.lua }}
|
LUA_VERSION: ${{ matrix.lua }}
|
||||||
|
|||||||
Reference in New Issue
Block a user