mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-23 11:13:21 +00:00
35a306dfd9
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
32 lines
711 B
YAML
32 lines
711 B
YAML
name: build
|
|
on: push
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
target: [ linux.amd64, linux.arm64 ]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.23.3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20'
|
|
- name: ui
|
|
run: |
|
|
cd ui
|
|
npm install
|
|
npm run build
|
|
cd ..
|
|
- name: build
|
|
env:
|
|
target: ${{ matrix.target }}
|
|
run: |
|
|
os=$(echo $target | awk -F. '{print $1}')
|
|
arch=$(echo $target | awk -F. '{print $2}')
|
|
./build.sh $os $arch
|