mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
update ci
This commit is contained in:
parent
4b9baadcdc
commit
026318ccc4
2 changed files with 10 additions and 28 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
@ -1,6 +1,11 @@
|
||||||
name: Build
|
name: Build
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
push:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windowsAmd64Build:
|
windowsAmd64Build:
|
||||||
|
@ -14,7 +19,7 @@ jobs:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
- name: Building Windows amd64 Version
|
- name: Building Windows amd64 Version
|
||||||
run: |
|
run: |
|
||||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o WireProxy_amd64.exe -v main.go
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o WireProxy_amd64.exe -v ./cmd/wireproxy
|
||||||
mkdir release_windows_amd64
|
mkdir release_windows_amd64
|
||||||
mv WireProxy_amd64.exe wireproxy.exe
|
mv WireProxy_amd64.exe wireproxy.exe
|
||||||
cp wireproxy.exe release_windows_amd64/wireproxy.exe
|
cp wireproxy.exe release_windows_amd64/wireproxy.exe
|
||||||
|
@ -34,7 +39,7 @@ jobs:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
- name: Building Linux amd64 Version
|
- name: Building Linux amd64 Version
|
||||||
run: |
|
run: |
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o WireProxy_amd64 -v main.go
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o WireProxy_amd64 -v ./cmd/wireproxy
|
||||||
mkdir release_linux_amd64
|
mkdir release_linux_amd64
|
||||||
mv WireProxy_amd64 wireproxy
|
mv WireProxy_amd64 wireproxy
|
||||||
cp wireproxy release_linux_amd64/wireproxy
|
cp wireproxy release_linux_amd64/wireproxy
|
||||||
|
@ -54,7 +59,7 @@ jobs:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
- name: Building Linux arm64 Version
|
- name: Building Linux arm64 Version
|
||||||
run: |
|
run: |
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o WireProxy_arm64 -v main.go
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o WireProxy_arm64 -v ./cmd/wireproxy
|
||||||
mkdir release_linux_arm64
|
mkdir release_linux_arm64
|
||||||
mv WireProxy_arm64 wireproxy
|
mv WireProxy_arm64 wireproxy
|
||||||
cp wireproxy release_linux_arm64/wireproxy
|
cp wireproxy release_linux_arm64/wireproxy
|
||||||
|
@ -74,7 +79,7 @@ jobs:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
- name: Building Linux s390x Version
|
- name: Building Linux s390x Version
|
||||||
run: |
|
run: |
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=s390x go build -o WireProxy_s390x -v main.go
|
CGO_ENABLED=0 GOOS=linux GOARCH=s390x go build -o WireProxy_s390x -v ./cmd/wireproxy
|
||||||
mkdir release_linux_s390x
|
mkdir release_linux_s390x
|
||||||
mv WireProxy_s390x wireproxy
|
mv WireProxy_s390x wireproxy
|
||||||
cp wireproxy release_linux_s390x/wireproxy
|
cp wireproxy release_linux_s390x/wireproxy
|
||||||
|
|
23
.github/workflows/ci-ubuntu.yml
vendored
23
.github/workflows/ci-ubuntu.yml
vendored
|
@ -1,23 +0,0 @@
|
||||||
name: Build
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: 1.17
|
|
||||||
- name: Checkout wireproxy
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Build wireproxy
|
|
||||||
run: go build ./cmd/wireproxy
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue