From 195d4188764a4e4b58941165b1f9cc9c5a27f142 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Wed, 20 Sep 2023 20:21:47 +0200 Subject: [PATCH] build: remove CGo dependencies for Windows cross-compiler tests Signed-off-by: deadprogram --- .github/workflows/linux.yml | 5 +---- Makefile | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 524273d..8a56d1c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -26,8 +26,5 @@ jobs: run: make smoketest-tinygo - name: Run Linux smoke tests run: make smoketest-linux - - name: Install Windows cross compiler - run: | - apt-get install -y gcc-mingw-w64-x86-64 - - name: "Run Windows smoke tests" + - name: "Run Windows cross-compiled smoke tests" run: make smoketest-windows diff --git a/Makefile b/Makefile index 4690a32..18bb902 100644 --- a/Makefile +++ b/Makefile @@ -44,9 +44,9 @@ smoketest-linux: smoketest-windows: # Test on Windows. - GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o /tmp/go-build-discard ./examples/scanner - GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o /tmp/go-build-discard ./examples/discover - GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o /tmp/go-build-discard ./examples/heartrate-monitor + GOOS=windows go build -o /tmp/go-build-discard ./examples/scanner + GOOS=windows go build -o /tmp/go-build-discard ./examples/discover + GOOS=windows go build -o /tmp/go-build-discard ./examples/heartrate-monitor smoketest-macos: # Test on macos.