Skip to content

Commit

Permalink
fix windows CI appempt 24 of ~1000
Browse files Browse the repository at this point in the history
  • Loading branch information
CtrlSpice committed Feb 16, 2025
1 parent 462637f commit c5ff8b9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ jobs:
go-version: '1.23'

- name: Download DuckDB
shell: cmd
shell: pwsh
run: |
curl -L -o libduckdb.zip https://github.com/duckdb/duckdb/releases/download/v0.10.0/libduckdb-windows-amd64.zip
unzip libduckdb.zip
mkdir C:\duckdb
copy duckdb.dll "C:\duckdb\duckdb.dll"
set PATH=C:\duckdb;%PATH%
Expand-Archive -Path libduckdb.zip -DestinationPath C:\duckdb
$env:PATH="C:\duckdb;$env:PATH"
$env:CGO_LDFLAGS="-L C:\duckdb -lduckdb_static"
$env:CGO_CFLAGS="-I C:\duckdb"
dir C:\duckdb
- name: Build
run: |
Expand All @@ -36,10 +37,15 @@ jobs:
go build -v -tags=duckdb_use_lib -o ..\otel-desktop-viewer
env:
CGO_ENABLED: 1
CGO_LDFLAGS: -L C:\duckdb -lduckdb
CGO_LDFLAGS: "-L C:\\duckdb -lduckdb_static"
CGO_CFLAGS: "-I C:\\duckdb"

- name: Exporter Go Tests
run: cd desktopexporter; go test ./...
env:
CGO_ENABLED: 1
CGO_LDFLAGS: "-L C:\\duckdb -lduckdb_static"
CGO_CFLAGS: "-I C:\\duckdb"

# - name: Integration
# run: ./.github/workflows/integration.sh
Expand Down

0 comments on commit c5ff8b9

Please sign in to comment.