Skip to content

Commit

Permalink
fix windows CI appempt 23 of ~1000
Browse files Browse the repository at this point in the history
  • Loading branch information
CtrlSpice committed Feb 16, 2025
1 parent 0acf77a commit 462637f
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,10 @@ on: push
jobs:

build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [windows-latest]
include:
- os: windows-latest
env:
NO_WINDOWS_SERVICE: 0
runs-on: windows-latest
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4

Expand All @@ -25,36 +20,23 @@ jobs:
with:
go-version: '1.23'

# Install Visual C++ build tools
- name: Install Visual C++ Build Tools
uses: microsoft/[email protected]

# Download and setup DuckDB for Windows
- name: Setup DuckDB (Windows)
- name: Download DuckDB
shell: cmd
run: |
curl -L -o duckdb.zip https://github.com/duckdb/duckdb/releases/download/v0.10.0/libduckdb-windows-amd64.zip
unzip duckdb.zip
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"
copy duckdb.lib "C:\duckdb\duckdb.lib"
copy duckdb.h "C:\duckdb\duckdb.h"
findstr "duckdb_appender" "C:\duckdb\duckdb.h"
set CGO_ENABLED=1
set CGO_LDFLAGS=-L C:\duckdb -lduckdb
set CGO_CFLAGS=-I C:\duckdb
set PATH=C:\duckdb;%PATH%
# Build step
- name: Build
run: |
cd desktopcollector
go version
go build -v -o ..\otel-desktop-viewer
go build -v -tags=duckdb_use_lib -o ..\otel-desktop-viewer
env:
CGO_ENABLED: 1
CGO_LDFLAGS: -L C:\duckdb -lduckdb
CGO_CFLAGS: -I C:\duckdb

- name: Exporter Go Tests
run: cd desktopexporter; go test ./...
Expand Down

0 comments on commit 462637f

Please sign in to comment.