Skip to content

Commit

Permalink
gRPC requires an environment variable to find the root of trust for SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
hafenkran committed Jul 8, 2024
1 parent a1c46c3 commit ed9269b
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/_extension_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,24 +383,31 @@ jobs:
with:
vcpkgGitCommitId: ${{ inputs.vcpkg_commit }}

- name: Build extension
env:
DUCKDB_PLATFORM: ${{ matrix.duckdb_arch }}
run: |
make release CURL_LIBRARY=$CURL_LIBRARY CURL_INCLUDE_DIR=$CURL_INCLUDE_DIR
- name: Install SSL Certificates
run: |
@powershell -NoProfile -ExecutionPolicy unrestricted -Command ^
(new-object System.Net.WebClient).Downloadfile( ^
'https://pki.google.com/roots.pem', 'roots.pem')
(New-Object System.Net.WebClient).Downloadfile( ^
'https://pki.google.com/roots.pem', 'C:\\certificates\\roots.pem')
shell: cmd

- name: Set GRPC_DEFAULT_SSL_ROOTS_FILE_PATH
run: |
set GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=%cd%\roots.pem
set GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=C:\\certificates\\roots.pem
shell: cmd

- name: Verify SSL Certificates
run: |
if not exist C:\\certificates\\roots.pem echo "roots.pem file not found!" && exit 1
echo "roots.pem file downloaded successfully."
shell: cmd

- name: Build extension
env:
DUCKDB_PLATFORM: ${{ matrix.duckdb_arch }}
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH: ${{ env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH }}
run: |
make release CURL_LIBRARY=$CURL_LIBRARY CURL_INCLUDE_DIR=$CURL_INCLUDE_DIR
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
Expand Down

0 comments on commit ed9269b

Please sign in to comment.