forked from hans/Nominatim
actions: cache compiled osm2pgsql binary
This commit is contained in:
33
.github/workflows/ci-tests.yml
vendored
33
.github/workflows/ci-tests.yml
vendored
@@ -68,19 +68,30 @@ 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: |
|
||||||
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
|
if [ ! -f /usr/local/bin/osm2pgsql ]; then
|
||||||
mkdir osm2pgsql-build
|
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
|
||||||
cd osm2pgsql-build
|
mkdir osm2pgsql-build
|
||||||
git clone https://github.com/osm2pgsql-dev/osm2pgsql
|
cd osm2pgsql-build
|
||||||
mkdir build
|
git clone https://github.com/osm2pgsql-dev/osm2pgsql
|
||||||
cd build
|
mkdir build
|
||||||
cmake ../osm2pgsql
|
cd build
|
||||||
make
|
cmake ../osm2pgsql
|
||||||
sudo make install
|
make
|
||||||
cd ../..
|
sudo make install
|
||||||
rm -rf osm2pgsql-build
|
cd ../..
|
||||||
|
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