File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 3030 make build_power8
3131 echo "ARM64 build"
3232 make build_arm64
33- echo "Windows build"
34- make build_windows
3533
3634 - name : Create Release
3735 id : create_release
8886 asset_name : 2fa-server_arm64
8987 asset_content_type : application/octet-stream
9088
91- - name : Upload windows binary
92- id : upload-2fa-server-windows
93- uses : actions/upload-release-asset@v1
94- env :
95- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96- with :
97- upload_url : ${{ steps.create_release.outputs.upload_url }}
98- asset_path : ./2fa-server_windows
99- asset_name : 2fa-server_windows
100- asset_content_type : application/octet-stream
101-
10289 - name : Get the Ref
10390 id : get-ref
10491 uses : ankitvgupta/ref-to-tag-action@master
Original file line number Diff line number Diff line change 1010build :
1111 go clean; rm -rf pkg 2fa-server* ; go build ${flags}
1212
13- build_all : build build_darwin build_amd64 build_power8 build_arm64 build_windows
13+ build_all : build build_darwin build_amd64 build_power8 build_arm64
1414
1515build_darwin :
1616 go clean; rm -rf pkg 2fa-server_darwin; GOOS=darwin go build ${flags}
@@ -29,7 +29,7 @@ build_arm64:
2929 mv 2fa-server 2fa-server_arm64
3030
3131build_windows :
32- go clean; rm -rf pkg 2fa-server_windows; GOOS=windows go build ${flags}
32+ go clean; rm -rf pkg 2fa-server_windows; GOARCH=amd64 GOOS=windows CGO_ENABLED=0 go build ${flags}
3333 mv 2fa-server 2fa-server_windows
3434
3535install :
You can’t perform that action at this time.
0 commit comments