Skip to content

Commit b152dc8

Browse files
committed
use PBF for testing
Geofabrik doesn't see to have osm.bz2 files anymore.
1 parent a2ddd01 commit b152dc8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ jobs:
384384
runs-on: windows-2025
385385

386386
env:
387-
OSMURL: https://download.geofabrik.de/europe/monaco-latest.osm.bz2
387+
OSMURL: https://download.geofabrik.de/europe/monaco-latest.osm.pbf
388388

389389
steps:
390390
- uses: actions/checkout@v4
@@ -398,8 +398,9 @@ jobs:
398398
& $env:PGBIN\psql -d osm -c "CREATE EXTENSION hstore; CREATE EXTENSION postgis;"
399399
shell: pwsh
400400
- name: Get test data
401-
run: (new-object net.webclient).DownloadFile($env:OSMURL, "testfile.osm.bz2")
401+
run: Invoke-WebRequest -Uri $env:OSMURL -OutFile "testfile.osm.pbf"
402+
shell: pwsh
402403
- name: Execute osm2pgsql
403-
run: ./osm2pgsql-bin/osm2pgsql --slim -d osm testfile.osm.bz2
404+
run: ./osm2pgsql-bin/osm2pgsql --slim -d osm testfile.osm.pbf
404405
shell: bash
405406

0 commit comments

Comments
 (0)