fix windows CI appempt 18 of ~1000 #430
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' | |
- name: Set up MinGW | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: mingw64 | |
update: true | |
install: >- | |
git | |
mingw-w64-x86_64-toolchain | |
mingw-w64-x86_64-cmake | |
mingw-w64-x86_64-ninja | |
# Build DuckDB from source | |
- name: Build DuckDB | |
shell: msys2 {0} | |
run: | | |
git clone https://github.com/duckdb/duckdb | |
cd duckdb | |
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DBUILD_EXTENSIONS="icu;parquet;json" | |
cmake --build . --config Release | |
# Copy the built library files | |
cp build/Release/src/libduckdb.dll /mingw64/bin/ | |
cp build/Release/src/libduckdb.a /mingw64/lib/ | |
cp src/include/duckdb.h /mingw64/include/ | |
# Build step | |
- name: Build | |
run: | | |
cd desktopcollector | |
go build -v -o ../otel-desktop-viewer | |
env: | |
CGO_ENABLED: 1 | |
CGO_LDFLAGS: -L C:/msys64/mingw64/lib -lduckdb | |
CGO_CFLAGS: -I C:/msys64/mingw64/include | |
- name: Exporter Go Tests | |
run: cd desktopexporter; go test ./... | |
# - name: Integration | |
# run: ./.github/workflows/integration.sh | |
# shell: bash |