arch: [i386, x86_64, arm, armhf, mips, mipsel]
steps:
- uses: actions/checkout@v1
- - name: cross build - ${{ matrix.arch }}
+ - 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
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- - name: build release archive
+ - name: Build Release
run: |
- docker run --rm -v $(pwd):/ttyd -w /ttyd -e TTYD_VERSION=$GITHUB_SHA tsl0922/musl-cross ./scripts/cross-build.sh
+ mkdir -p bin
+ for arch in i386 x86_64 arm armhf mips mipsel; do
+ docker run --rm -v $(pwd):/ttyd -w /ttyd tsl0922/musl-cross ./scripts/cross-build.sh $arch
+ cp build/ttyd bin/ttyd_linux.$arch
+ sha256sum bin/ttyd_linux.$arch >> bin/SHA256SUMS
+ done
- uses: ncipollo/release-action@v1
with:
artifact: "bin/*"