Skip to content

Commit

Permalink
fix windows CI appempt 26 of ~1000 - aaaaaaaaaaaaaaaaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
CtrlSpice committed Feb 16, 2025
1 parent da417c8 commit 03c28d4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.23'

Expand All @@ -27,24 +27,35 @@ jobs:
- name: Download DuckDB
run: |
# Get both the Windows library and the header files
curl -L -o libduckdb.zip https://github.com/duckdb/duckdb/releases/download/v0.10.0/libduckdb-windows-amd64.zip
curl -L -o duckdb-headers.zip https://github.com/duckdb/duckdb/releases/download/v0.10.0/libduckdb-src.zip
# Extract Windows library
unzip libduckdb.zip -d duckdb
# Extract headers and maintain structure
unzip duckdb-headers.zip -d duckdb-src
mkdir -p duckdb/include
cp -r duckdb-src/src/include/* duckdb/include/
ls -la duckdb
ls -la duckdb/include
- name: Build
run: |
cd desktopcollector
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc \
CGO_LDFLAGS="-L$(pwd)/../duckdb -lduckdb_static" \
CGO_CFLAGS="-I$(pwd)/../duckdb" \
CGO_CFLAGS="-I$(pwd)/../duckdb/include" \
go build -v -tags=duckdb_use_lib -o ../otel-desktop-viewer.exe
- name: Exporter Go Tests
run: |
cd desktopexporter
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc \
CGO_LDFLAGS="-L$(pwd)/../duckdb -lduckdb_static" \
CGO_CFLAGS="-I$(pwd)/../duckdb" \
CGO_CFLAGS="-I$(pwd)/../duckdb/include" \
go test ./...
# - name: Integration
Expand Down

0 comments on commit 03c28d4

Please sign in to comment.