Skip to content

Commit 195d418

Browse files
committed
build: remove CGo dependencies for Windows cross-compiler tests
Signed-off-by: deadprogram <[email protected]>
1 parent 0cc860c commit 195d418

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,5 @@ jobs:
2626
run: make smoketest-tinygo
2727
- name: Run Linux smoke tests
2828
run: make smoketest-linux
29-
- name: Install Windows cross compiler
30-
run: |
31-
apt-get install -y gcc-mingw-w64-x86-64
32-
- name: "Run Windows smoke tests"
29+
- name: "Run Windows cross-compiled smoke tests"
3330
run: make smoketest-windows

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ smoketest-linux:
4444

4545
smoketest-windows:
4646
# Test on Windows.
47-
GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o /tmp/go-build-discard ./examples/scanner
48-
GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o /tmp/go-build-discard ./examples/discover
49-
GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o /tmp/go-build-discard ./examples/heartrate-monitor
47+
GOOS=windows go build -o /tmp/go-build-discard ./examples/scanner
48+
GOOS=windows go build -o /tmp/go-build-discard ./examples/discover
49+
GOOS=windows go build -o /tmp/go-build-discard ./examples/heartrate-monitor
5050

5151
smoketest-macos:
5252
# Test on macos.

0 commit comments

Comments
 (0)