Dev/v0.6.8 #232
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 4- Arm32-V7 构建测试 | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Go build | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.1 | |
run: | | |
mkdir ./component/rulex_api_server/server/www | |
echo "hello">./component/rulex_api_server/server/www/index.html | |
sudo apt update -y | |
sudo apt install jq protobuf-compiler gcc-arm-linux-gnueabi -y | |
chmod 755 ./gen_info.sh | |
chmod +x ./gen_info.sh | |
chmod 755 ./gen_proto.sh | |
chmod +x ./gen_proto.sh | |
make | |
CGO_ENABLED=1 GOARM=7 GOOS=linux GOARCH=arm CC=arm-linux-gnueabi-gcc go build -ldflags "-s -w -linkmode external -extldflags -static" main.go |