fix(jdbc): include managed drivers in offline bundles
This commit is contained in:
14 files changed
+942
-15
No files matched your search
@@ -526,6 +526,46 @@ jobs:
|
||||
- name: JDBC plugin package check
|
||||
run: ./plugins/jdbc/package.sh
|
||||
|
||||
offline-jdbc-release:
|
||||
needs: changes
|
||||
if: needs.changes.outputs.offline_jdbc == 'true'
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "21"
|
||||
cache: gradle
|
||||
|
||||
- name: Cache approved Maven assets
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/dbx-offline-jdbc-maven
|
||||
key: offline-jdbc-${{ hashFiles('apps/desktop/src/lib/database/managedJdbcAssets.json') }}
|
||||
|
||||
- name: Build real managed JDBC payload
|
||||
env:
|
||||
DBX_OFFLINE_JDBC_MAVEN_CACHE: ~/.cache/dbx-offline-jdbc-maven
|
||||
run: |
|
||||
./plugins/jdbc/package.sh
|
||||
JDBC_VERSION="$(sed -nE "s/^version[[:space:]]*=[[:space:]]*'([^']+)'.*/\1/p" plugins/jdbc/build.gradle | head -n 1)"
|
||||
node agents/scripts/build_offline_jdbc_payload.mjs \
|
||||
release \
|
||||
"plugins/jdbc/dist/dbx-jdbc-plugin-${JDBC_VERSION}.zip" \
|
||||
"plugins/jdbc/dist/dbx-jdbc-plugin-${JDBC_VERSION}/bin/dbx-maven-resolver"
|
||||
|
||||
- name: Build and unpack all six platform ZIPs
|
||||
run: |
|
||||
printf '{}\n' > release/agent-registry.json
|
||||
for platform in macos-aarch64 macos-x64 linux-x64 linux-aarch64 windows-x64 windows-aarch64; do
|
||||
printf '%s\n' "$platform" > "release/dbx-jre-21-${platform}.tar.zst"
|
||||
done
|
||||
bash agents/scripts/build_offline_zip.sh release
|
||||
node agents/scripts/verify_offline_jdbc_release.mjs release
|
||||
|
||||
nix-packaging:
|
||||
needs: changes
|
||||
if: needs.changes.outputs.nix == 'true'
|
||||
@@ -548,6 +588,7 @@ jobs:
|
||||
rust: ${{ steps.filter.outputs.rust }}
|
||||
rust_full: ${{ steps.rust-mode.outputs.full }}
|
||||
jdbc: ${{ steps.filter.outputs.jdbc }}
|
||||
offline_jdbc: ${{ steps.filter.outputs.offline_jdbc }}
|
||||
agents: ${{ steps.filter.outputs.agents }}
|
||||
duckdb_windows: ${{ steps.filter.outputs.duckdb_windows }}
|
||||
nix: ${{ steps.filter.outputs.nix }}
|
||||
@@ -595,6 +636,15 @@ jobs:
|
||||
- '.github/workflows/ci.yml'
|
||||
jdbc:
|
||||
- 'plugins/jdbc/**'
|
||||
offline_jdbc:
|
||||
- 'plugins/jdbc/**'
|
||||
- 'agents/scripts/build_offline_jdbc_payload.mjs'
|
||||
- 'agents/scripts/build_offline_zip.sh'
|
||||
- 'agents/scripts/verify_offline_jdbc_release.mjs'
|
||||
- 'apps/desktop/src/lib/database/managedJdbcAssets.json'
|
||||
- '.github/scripts/offline-jdbc-payload.test.mjs'
|
||||
- '.github/workflows/agents-release.yml'
|
||||
- '.github/workflows/ci.yml'
|
||||
agents:
|
||||
- 'agents/**'
|
||||
- 'crates/dbx-core/Cargo.toml'
|
||||
|
||||
Reference in new issue
Block a user