mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-27 14:04:23 +01:00
workflow: cross build backend
This commit is contained in:
15
.github/workflows/backend.yml
vendored
15
.github/workflows/backend.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user