Browse Source

first attempt at windows build of gui

Matthew R. Kasun 3 years ago
parent
commit
5e5157970d
1 changed files with 17 additions and 0 deletions
  1. 17 0
      .github/workflows/test.yml

+ 17 - 0
.github/workflows/test.yml

@@ -46,6 +46,23 @@ jobs:
       - name: Build mac
         run: |
           env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -tags=gui main.go
+  win-gui:
+    runs-on: windows-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Setup Go
+        uses: actions/setup-go@v2
+        with:
+          go-version: 1.18
+      - name: Build windows gui
+        uses: mysys2/setup-mysys2@v2
+        with:
+          install: >-
+            git
+            mingw-w64-x86_64-toolchain
+        run: |
+          env CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -tags=gui main.go
   tests:
     env:
       DATABASE: sqlite