diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..240b013 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,29 @@ +# This workflow will build a golang project for Windows +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: build for windows +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.24' + + - name: Build + run: go build -o pi-im.exe . + + - name: Artifact + uses: actions/upload-artifact@v4 + with: + name: pi-binary-windows + path: pi-im.exe