Skip to content

Commit

Permalink
add windows arm64, darwin amd64 arm64 to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pufferffish committed Mar 30, 2022
1 parent 0feb862 commit 33c5170
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ jobs:
with:
name: WireProxy_windows_amd64
path: release_windows_amd64
windowsArm64Build:
name: Build Windows arm64 Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Building Windows arm64 Version
run: |
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -o WireProxy_arm64.exe -v ./cmd/wireproxy
mkdir release_windows_arm64
mv WireProxy_arm64.exe wireproxy.exe
cp wireproxy.exe release_windows_arm64/wireproxy.exe
- name: Upload Windows arm64 Version
uses: actions/upload-artifact@v1
with:
name: WireProxy_windows_arm64
path: release_windows_arm64
linuxAmd64Build:
name: Build Linux amd64 Version
runs-on: ubuntu-latest
Expand Down Expand Up @@ -88,3 +108,43 @@ jobs:
with:
name: WireProxy_linux_s390x
path: release_linux_s390x
darwinAmd64Build:
name: Build Darwin amd64 Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Building Darwin amd64 Version
run: |
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o WireProxy_amd64 -v ./cmd/wireproxy
mkdir release_darwin_amd64
mv WireProxy_amd64 wireproxy
cp wireproxy release_darwin_amd64/wireproxy
- name: Upload Darwin amd64 Version
uses: actions/upload-artifact@v1
with:
name: WireProxy_darwin_amd64
path: release_darwin_amd64
darwinArm64Build:
name: Build Darwin arm64 Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Building Darwin arm64 Version
run: |
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o WireProxy_arm64 -v ./cmd/wireproxy
mkdir release_darwin_arm64
mv WireProxy_arm64 wireproxy
cp wireproxy release_darwin_arm64/wireproxy
- name: Upload Darwin arm64 Version
uses: actions/upload-artifact@v1
with:
name: WireProxy_darwin_arm64
path: release_darwin_arm64

0 comments on commit 33c5170

Please sign in to comment.