From 0ae5f8f1066108fb992560698db9299d45c8bd31 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Thu, 23 Nov 2023 09:25:31 -0600 Subject: [PATCH] first try at Windows github actions build --- .github/workflows/build-windows.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build-windows.yml diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml new file mode 100644 index 00000000..22778e97 --- /dev/null +++ b/.github/workflows/build-windows.yml @@ -0,0 +1,38 @@ +# 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: Build Mac OS + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + steps: + - uses: msys2/setup-msys2@v2 + with: + update: true + install: >- + wget + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Install Dependencies + run: pacman -Syu && pacman -S git mingw-w64-x86_64-toolchain mingw-w64-x86_64-mpv + + - name: Build + run: go build + + - name: Install Fyne tool + run: go install fyne.io/fyne/v2/cmd/fyne@latest