From 7a49be98c961950563e7cb32b5f4565a6078b38e Mon Sep 17 00:00:00 2001 From: Jongwhan Lee <51560997+leejw51crypto@users.noreply.github.com> Date: Tue, 20 Apr 2021 16:00:43 +0800 Subject: [PATCH] Problem: missing Makefile equivalent for windows (fix #443) (#469) Solution: add compiling script for windows needs mingw64 beforehand for native compile --- .github/workflows/buildwin.yml | 29 +++++++++++++++++++++++++++++ makewin.bat | 14 ++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/buildwin.yml create mode 100644 makewin.bat 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=