workflow: cross build backend

This commit is contained in:
Shuanglei Tao
2019-12-08 16:21:44 +08:00
parent 63dbdd6cdb
commit 3a2687b3cb
2 changed files with 45 additions and 37 deletions

View File

@@ -36,3 +36,18 @@ jobs:
cmake -DCMAKE_BUILD_TYPE=RELEASE .
make && sudo make install
ttyd -v
cross:
runs-on: ubuntu-16.04
strategy:
matrix:
arch: [i386, x86_64, arm, armhf, mips, mipsel]
steps:
- uses: actions/checkout@v1
- name: cross build - ${{ matrix.arch }}
env:
ARCH: ${{ matrix.arch }}
run: docker run --rm -v $(pwd):/ttyd -w /ttyd tsl0922/musl-cross ./scripts/cross-build.sh $ARCH
- uses: actions/upload-artifact@v1
with:
name: ttyd.${{ matrix.arch }}
path: build/ttyd