diff --git a/.github/workflows/buildwin.yml b/.github/workflows/buildwin.yml new file mode 100644 index 000000000..e14ffb5a9 --- /dev/null +++ b/.github/workflows/buildwin.yml @@ -0,0 +1,29 @@ +name: Build + +on: + pull_request: + push: + branches: + - master + - release/** +jobs: + build: + name: Build For Windowss + runs-on: windows-latest + steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.1 + - name: Normal check out code + uses: actions/checkout@v2 + with: + submodules: true + - name: Set GOBIN + run: | + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + - name: Build For Windows + shell: pwsh + run: | + echo "Working Folder $Env:GITHUB_WORKSPACE" + & "$env:GITHUB_WORKSPACE/makewin.bat" diff --git a/makewin.bat b/makewin.bat new file mode 100644 index 000000000..dc5c8659e --- /dev/null +++ b/makewin.bat @@ -0,0 +1,14 @@ +rem get version +git describe --tag > temp.txt +set /p VERSION= temp.txt +set /p COMMIT=