Skip to content

Commit

Permalink
workflow: build win10 binary on release
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Aug 8, 2022
1 parent 3ba994a commit b76c91e
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -47,4 +47,34 @@ jobs:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: build/ttyd
asset_name: ttyd.${{ matrix.target }}
asset_content_type: application/octet-stream
asset_content_type: application/octet-stream
win10:
runs-on: windows-latest
needs: release
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: >-
make
mingw64/mingw-w64-x86_64-gcc
mingw64/mingw-w64-x86_64-cmake
mingw64/mingw-w64-x86_64-zlib
mingw64/mingw-w64-x86_64-libuv
mingw64/mingw-w64-x86_64-mbedtls
mingw64/mingw-w64-x86_64-json-c
update: true
- name: Build ttyd
shell: msys2 {0}
run: ./scripts/mingw-build.sh
- name: Upload assets
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: build/ttyd.exe
asset_name: ttyd.win10.exe
asset_content_type: application/octet-stream

0 comments on commit b76c91e

Please sign in to comment.