Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jan 5, 2022
1 parent 16176da commit 35cd2e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ jobs:
make build_power8
echo "ARM64 build"
make build_arm64
echo "Windows build"
make build_windows
- name: Create Release
id: create_release
Expand Down Expand Up @@ -88,17 +86,6 @@ jobs:
asset_name: 2fa-server_arm64
asset_content_type: application/octet-stream

- name: Upload windows binary
id: upload-2fa-server-windows
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./2fa-server_windows
asset_name: 2fa-server_windows
asset_content_type: application/octet-stream

- name: Get the Ref
id: get-ref
uses: ankitvgupta/ref-to-tag-action@master
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ vet:
build:
go clean; rm -rf pkg 2fa-server*; go build ${flags}

build_all: build build_darwin build_amd64 build_power8 build_arm64 build_windows
build_all: build build_darwin build_amd64 build_power8 build_arm64

build_darwin:
go clean; rm -rf pkg 2fa-server_darwin; GOOS=darwin go build ${flags}
Expand All @@ -29,7 +29,7 @@ build_arm64:
mv 2fa-server 2fa-server_arm64

build_windows:
go clean; rm -rf pkg 2fa-server_windows; GOOS=windows go build ${flags}
go clean; rm -rf pkg 2fa-server_windows; GOARCH=amd64 GOOS=windows CGO_ENABLED=0 go build ${flags}
mv 2fa-server 2fa-server_windows

install:
Expand Down

0 comments on commit 35cd2e6

Please sign in to comment.