Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: bundle DLL dependencies for windows release #3469

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} \;
Expand All @@ -191,8 +197,10 @@ 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" \
artifacts/postgrest-windows-x64/postgrest.exe
zip --junk-paths "release-bundle/postgrest-v$VERSION-windows-x64.zip" \
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
Expand Down
Loading