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.