fix windows CI appempt 22 of ~1000 #434
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go | |
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 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
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) | |
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 | |
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 | |
env: | |
CGO_ENABLED: 1 | |
CGO_LDFLAGS: -L C:\duckdb -lduckdb | |
CGO_CFLAGS: -I C:\duckdb | |
- name: Exporter Go Tests | |
run: cd desktopexporter; go test ./... | |
# - name: Integration | |
# run: ./.github/workflows/integration.sh | |
# shell: bash |