Skip to content

Commit

Permalink
fix windows CI appempt 8 of ~1000
Browse files Browse the repository at this point in the history
  • Loading branch information
CtrlSpice committed Feb 16, 2025
1 parent cfbaf35 commit b0d9136
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ jobs:
run: |
curl -L -o duckdb.zip https://github.com/duckdb/duckdb/releases/download/v0.9.2/libduckdb-windows-amd64.zip
unzip duckdb.zip
# Copy to the current directory where build will happen
copy duckdb.dll desktopcollector\
copy duckdb.lib desktopcollector\
# Copy and rename files to match MinGW expectations
copy duckdb.dll desktopcollector\libduckdb.dll
copy duckdb.lib desktopcollector\libduckdb.a
copy duckdb.h desktopcollector\
# Set environment variables for CGO
echo "CGO_LDFLAGS=-L./desktopcollector -lduckdb" >> $env:GITHUB_ENV
echo "CGO_CFLAGS=-I./desktopcollector" >> $env:GITHUB_ENV
echo "CGO_LDFLAGS=-L${PWD}\desktopcollector -lduckdb" >> $env:GITHUB_ENV
echo "CGO_CFLAGS=-I${PWD}\desktopcollector" >> $env:GITHUB_ENV
echo "CGO_ENABLED=1" >> $env:GITHUB_ENV
# Add the directory to PATH
echo "${PWD}\desktopcollector" >> $env:GITHUB_PATH
# Build step
- name: Build
Expand Down

0 comments on commit b0d9136

Please sign in to comment.