action debug
This commit is contained in:
parent
c4fd48f6e6
commit
cb49dc3654
2 changed files with 6 additions and 4 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
|
@ -3,8 +3,8 @@ name: Release
|
|||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
# paths:
|
||||
# - "share/const.go"
|
||||
paths:
|
||||
- "share/const.go"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
|
@ -13,12 +13,13 @@ jobs:
|
|||
matrix:
|
||||
go: [1.17]
|
||||
steps:
|
||||
- name: arm env
|
||||
- name: Arm Build
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev build-essential bison flex libssl-dev bc
|
||||
sudo apt-get install -y gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
|
||||
sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
|
||||
sudo apt-get install -y g++-aarch64-linux-gnu crossbuild-essential-arm64
|
||||
|
||||
- name: Setup Cache
|
||||
uses: actions/cache@v2
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -267,7 +267,8 @@ artifacts: clean
|
|||
# 制品
|
||||
mkdir -p dist
|
||||
CGO_ENABLED=1 CGO_LDFLAGS="-static" GOOS=linux GOARCH=amd64 go build -v -o dist/yao-${VERSION}-linux-amd64
|
||||
CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build -v -o dist/yao-${VERSION}-linux-arm
|
||||
# CGO_ENABLED=1 CGO_LDFLAGS="-static" GOOS=linux GOARCH=arm GOARM=7 CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ go build -v -o dist/yao-${VERSION}-linux-arm
|
||||
# CGO_ENABLED=1 CGO_LDFLAGS="-static" GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ go build -v -o dist/yao-${VERSION}-linux-arm64
|
||||
|
||||
mkdir -p dist/release
|
||||
mv dist/yao-*-* dist/release/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue