Skip to content

Commit 35cd2e6

Browse files
committed
Update
1 parent 16176da commit 35cd2e6

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
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
@@ -88,17 +86,6 @@ jobs:
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

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ vet:
1010
build:
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

1515
build_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

3131
build_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

3535
install:

0 commit comments

Comments
 (0)