Skip to content

dev: add default index #236

dev: add default index

dev: add default index #236

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