Skip to content

fix windows CI appempt 2 of ~1000 #414

fix windows CI appempt 2 of ~1000

fix windows CI appempt 2 of ~1000 #414

Workflow file for this run

# 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]
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
# Add these steps for Windows
- name: Set up MinGW
if: matrix.os == 'windows-latest'
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
# Download and setup DuckDB for Windows
- name: Setup DuckDB (Windows)
if: matrix.os == 'windows-latest'
run: |
curl -L -o duckdb.zip https://github.com/duckdb/duckdb/releases/download/v0.9.2/libduckdb-windows-amd64.zip
unzip duckdb.zip
copy libduckdb.dll C:\Windows\System32\
copy libduckdb.lib C:\Windows\System32\
- name: Build
run: cd desktopcollector; go build -o ../otel-desktop-viewer
- name: Exporter Go Tests
run: cd desktopexporter; go test ./...
# - name: Integration
# run: ./.github/workflows/integration.sh
# shell: bash