]> prime8.dev >> repos - ttyd.git/commitdiff
workflow: update release
authorShuanglei Tao <tsl0922@gmail.com>
Sun, 8 Dec 2019 08:48:28 +0000 (16:48 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sun, 8 Dec 2019 09:12:35 +0000 (17:12 +0800)
.github/workflows/backend.yml
.github/workflows/release.yml

index d724d9e0fcedc5f25fc1d6db23e44daf026a55e2..7e3ee86ee47a2d3b447b67c79c6d6a6500f96885 100644 (file)
@@ -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
index d2c21c522573e124875241803d8c1feebfa27c7c..111e929dc3142400db406ecbf07a771646362aef 100644 (file)
@@ -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/*"