Adding WA bindings. [skip CI] #1542
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
push: | |
branches: [ main ] | |
tags: 'v*.*.*' | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-2022 | |
if: "startsWith(github.ref, 'refs/tags/') || (!contains(github.event.head_commit.message, '[skip CI]') && !contains(github.event.head_commit.message, '[skip Windows]'))" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Setup msbuild | |
uses: microsoft/[email protected] | |
- name: Windows build | |
run: Tools\build-scripts\build_windows.bat | |
- name: Pack | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
cd Tools\dora-dora | |
yarn install --network-timeout 1000000 | |
yarn build | |
ren build www | |
7z a -tzip ..\..\dora-ssr-windows-x86.zip www | |
cd ..\.. | |
cd Tools\dora-dora\3rdParty\YarnEditor | |
yarn | |
yarn build-win | |
ren dist yarn-editor | |
mkdir www | |
move yarn-editor www | |
7z a -tzip ..\..\..\..\dora-ssr-windows-x86.zip www\yarn-editor | |
cd ..\..\..\.. | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Audio && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Data && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Doc && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip DragonBones && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Font && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip gamecontrollerdb.txt && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Image && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip LICENSES && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Model && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Particle && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Script && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip Spine && cd ..) | |
(cd Assets && 7z a -tzip ..\dora-ssr-windows-x86.zip TMX && cd ..) | |
(cd Projects\Windows\build\Release && 7z a -tzip ..\..\..\..\dora-ssr-windows-x86.zip Dora.exe && cd ..\..\..\..) | |
ren dora-ssr-windows-x86.zip dora-ssr-${{ github.ref_name }}-windows-x86.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
dora-ssr-${{ github.ref_name }}-windows-x86.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |