Skip to content

Commit ba6ea11

Browse files
committed
Revert "Fix EnterpriseDB Windows PG installation in CI"
This reverts commit 25d89af. Windows builds are hanging
1 parent 25d89af commit ba6ea11

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ ubuntu-20.04, windows-2019 ]
16+
# Temporarily disable Windows because of PG installation issues
17+
# os: [ ubuntu-20.04, windows-2019 ]
18+
os: [ ubuntu-20.04 ]
1719
pg_major: [ 12, 11, 10 ]
1820
# PostgreSQL 13 is out, but there's no PostGIS binary for Windows yet (http://download.osgeo.org/postgis/windows/)
1921
include:
@@ -52,13 +54,11 @@ jobs:
5254
if: startsWith(matrix.os, 'windows')
5355
run: |
5456
# Find EnterpriseDB version number
55-
EDB_VERSION=$(pwsh -c "
56-
\$global:progressPreference='silentlyContinue';
57-
Invoke-WebRequest -URI https://www.postgresql.org/applications-v2.xml |
58-
Select-Object -ExpandProperty Content |
59-
Select-Xml -XPath '/applications/application[id=\"postgresql_${{ matrix.pg_major }}\" and platform=\"windows-x64\"]/version/text()' |
60-
Select-Object -First 1 -ExpandProperty Node |
61-
Select-Object -ExpandProperty Value")
57+
EDB_VERSION=$(\
58+
curl -Ls 'http://sbp.enterprisedb.com/applications.xml' |
59+
sed -n '\#<id>postgresql_${{ matrix.pg_major }}</id>#{n;p;n;p;}' |
60+
sed -n '\#<platform>windows-x64</platform>#{n;p;}' |
61+
sed -E 's#.*<version>([^<]+)</version>#\1#')
6262
6363
# Install PostgreSQL
6464
echo "Installing PostgreSQL (version: ${EDB_VERSION})"

0 commit comments

Comments
 (0)