aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/windows.yml18
1 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index be57bbe..c066971 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -17,15 +17,27 @@ jobs:
17 uses: microsoft/setup-msbuild@v1.0.2 17 uses: microsoft/setup-msbuild@v1.0.2
18 - name: Windows build 18 - name: Windows build
19 run: | 19 run: |
20 msbuild win-build\Yuescript.sln /p:Configuration=release /p:Platform=x86 20 msbuild win-build\Yuescript.sln /p:Configuration=Release /p:Platform=x86
21 msbuild win-build\Yuescript.sln /p:Configuration=release /p:Platform=x64 21 msbuild win-build\Yuescript.sln /p:Configuration=Release /p:Platform=x64
22 - name: pack 22 - name: pack
23 if: startsWith(github.ref, 'refs/tags/') 23 if: startsWith(github.ref, 'refs/tags/')
24 run: | 24 run: |
25 (cd bin\windows\Win32\Release && 7z a ..\..\..\..\yue-windows-x86.7z yue.exe && cd ..\..\..\..) 25 (cd bin\windows\Win32\Release && 7z a ..\..\..\..\yue-windows-x86.7z yue.exe && cd ..\..\..\..)
26 (cd bin\windows\x64\Release && 7z a ..\..\..\..\yue-windows-x64.7z yue.exe && cd ..\..\..\..) 26 (cd bin\windows\x64\Release && 7z a ..\..\..\..\yue-windows-x64.7z yue.exe && cd ..\..\..\..)
27 - name: Windows build Lua 5.1 dll
28 if: startsWith(github.ref, 'refs/tags/')
29 run: |
30 msbuild win-build\Yuescript.sln /p:Configuration=Release51 /p:Platform=x86
31 msbuild win-build\Yuescript.sln /p:Configuration=Release51 /p:Platform=x64
27 (cd bin\windows\Win32\Release && 7z a ..\..\..\..\yue-windows-x86-lua51-dll.7z yue.dll && cd ..\..\..\..) 32 (cd bin\windows\Win32\Release && 7z a ..\..\..\..\yue-windows-x86-lua51-dll.7z yue.dll && cd ..\..\..\..)
28 (cd bin\windows\x64\Release && 7z a ..\..\..\..\yue-windows-x64-lua51-dll.7z yue.dll && cd ..\..\..\..) 33 (cd bin\windows\x64\Release && 7z a ..\..\..\..\yue-windows-x64-lua51-dll.7z yue.dll && cd ..\..\..\..)
34 - name: Windows build Lua 5.3 dll
35 if: startsWith(github.ref, 'refs/tags/')
36 run: |
37 msbuild win-build\Yuescript.sln /p:Configuration=Release53 /p:Platform=x86
38 msbuild win-build\Yuescript.sln /p:Configuration=Release53 /p:Platform=x64
39 (cd bin\windows\Win32\Release && 7z a ..\..\..\..\yue-windows-x86-lua53-dll.7z yue.dll && cd ..\..\..\..)
40 (cd bin\windows\x64\Release && 7z a ..\..\..\..\yue-windows-x64-lua53-dll.7z yue.dll && cd ..\..\..\..)
29 - name: release 41 - name: release
30 uses: softprops/action-gh-release@v1 42 uses: softprops/action-gh-release@v1
31 if: startsWith(github.ref, 'refs/tags/') 43 if: startsWith(github.ref, 'refs/tags/')
@@ -35,5 +47,7 @@ jobs:
35 yue-windows-x64.7z 47 yue-windows-x64.7z
36 yue-windows-x86-lua51-dll.7z 48 yue-windows-x86-lua51-dll.7z
37 yue-windows-x64-lua51-dll.7z 49 yue-windows-x64-lua51-dll.7z
50 yue-windows-x86-lua53-dll.7z
51 yue-windows-x64-lua53-dll.7z
38 env: 52 env:
39 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 53 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}