From dede398424f29a02e6cef004d12531f40646443a Mon Sep 17 00:00:00 2001 From: Andrei Dziahel Date: Wed, 1 May 2024 15:17:10 +0200 Subject: [PATCH 1/2] ci: release: drop directory prefix for Windows --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4f188b7e43..29f4c69652 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -191,7 +191,7 @@ jobs: tar cJvf "release-bundle/postgrest-v$VERSION-ubuntu-aarch64.tar.xz" \ -C artifacts/postgrest-ubuntu-aarch64 postgrest - zip "release-bundle/postgrest-v$VERSION-windows-x64.zip" \ + zip --junk-paths "release-bundle/postgrest-v$VERSION-windows-x64.zip" \ artifacts/postgrest-windows-x64/postgrest.exe - name: Save release bundle From 445b2630844b8cffc310d9d5b63db980f2848324 Mon Sep 17 00:00:00 2001 From: Andrei Dziahel Date: Wed, 1 May 2024 15:33:41 +0200 Subject: [PATCH 2/2] ci: release: bundle DLL dependencies for Windows --- .github/workflows/ci.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 29f4c69652..b625caf6b4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -173,6 +173,12 @@ jobs: uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 with: path: artifacts + - name: Prepare PostgreSQL binaries for Windows + run: | + mkdir -p dependencies/postgresql + curl --proto '=https' --tlsv1.2 -Sf -L -o dependencies/postgresql/postgresql-16.2-1-windows-x64-binaries.zip \ + "https://get.enterprisedb.com/postgresql/postgresql-16.2-1-windows-x64-binaries.zip" + unzip -d dependencies/postgresql dependencies/postgresql/postgresql-16.2-1-windows-x64-binaries.zip - name: Create release bundle with archives for all builds run: | find artifacts -type f -iname postgrest -exec chmod +x {} \; @@ -192,7 +198,9 @@ jobs: -C artifacts/postgrest-ubuntu-aarch64 postgrest zip --junk-paths "release-bundle/postgrest-v$VERSION-windows-x64.zip" \ - artifacts/postgrest-windows-x64/postgrest.exe + artifacts/postgrest-windows-x64/postgrest.exe \ + dependencies/postgresql/pgsql/bin/{libcrypto-3-x64,libiconv-2,libintl-9,libssl-3-x64,libwinpthread-1}.dll \ + dependencies/postgresql/pgsql/lib/libpq.dll - name: Save release bundle uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3