From: Shuanglei Tao Date: Sun, 8 Dec 2019 08:48:28 +0000 (+0800) Subject: workflow: update release X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=1f311e5e04ffba1df82e1855d143f8f7cc03fde4;p=ttyd.git workflow: update release --- diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index d724d9e..7e3ee86 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -43,7 +43,7 @@ jobs: 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2c21c5..111e929 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,14 @@ jobs: 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/*"