Files
archived-rttys/.github/workflows/build.yml
Jianhui Zhao d3c4e05041 feat: use go:embed from go1.16
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-02-20 23:02:11 +08:00

32 lines
752 B
YAML

name: build
on: push
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
target: [ linux.amd64, linux.arm64, darwin.amd64, windows.amd64 ]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-go@v2
with:
go-version: 1.16.0
- uses: actions/setup-node@v2
with:
node-version: '12'
- name: frontend
run: |
cd frontend
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