Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka No committed Apr 9, 2022
1 parent 9fef61b commit 509f364
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
go-version: 1.18
- name: build linux amd64 version
run: |
GOOS=linux GOARCH=amd64 go build -o xui-release -v main.go
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o xui-release -v main.go
mkdir x-ui
cp xui-release x-ui/xui-release
cp x-ui.service x-ui/x-ui.service
Expand Down Expand Up @@ -73,7 +73,9 @@ jobs:
go-version: 1.18
- name: build linux arm64 version
run: |
GOOS=linux GOARCH=arm64 go build -o xui-release -v main.go
sudo apt-get update
sudo apt install gcc-aarch64-linux-gnu
CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc go build -o xui-release -v main.go
mkdir x-ui
cp xui-release x-ui/xui-release
cp x-ui.service x-ui/x-ui.service
Expand Down Expand Up @@ -113,7 +115,9 @@ jobs:
go-version: 1.18
- name: build linux s390x version
run: |
GOOS=linux GOARCH=s390x go build -o xui-release -v main.go
sudo apt-get update
sudo apt install gcc-s390x-linux-gnu -y
CGO_ENABLED=1 GOOS=linux GOARCH=s390x CC=s390x-linux-gnu-gcc go build -o xui-release -v main.go
mkdir x-ui
cp xui-release x-ui/xui-release
cp x-ui.service x-ui/x-ui.service
Expand Down

0 comments on commit 509f364

Please sign in to comment.