|
31 | 31 | VS2019-Build: |
32 | 32 | runs-on: windows-latest |
33 | 33 |
|
34 | | - strategy: |
35 | | - matrix: |
36 | | - TARGET_PLATFORM: [x64, Win32] |
37 | | - |
38 | 34 | steps: |
39 | 35 | - name: Checkout repository |
40 | 36 | uses: actions/checkout@v2 |
@@ -62,17 +58,44 @@ jobs: |
62 | 58 | - name: Build |
63 | 59 | shell: cmd |
64 | 60 | run: | |
65 | | - for %%B in (Debug Release) do ( |
66 | | - msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=%%B,Platform=${{ matrix.TARGET_PLATFORM }},BuildMacros=${{ env.BUILD_MACROS }} |
| 61 | + for %%P in (Win32 x64) do ( |
| 62 | + for %%B in (Debug Release) do ( |
| 63 | + msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=%%B,Platform=%%P,BuildMacros=${{ env.BUILD_MACROS }} |
| 64 | + ) |
67 | 65 | ) |
68 | 66 |
|
69 | | - - name: Display SHA-256 |
70 | | - if: ${{ github.event_name == 'push' }} |
71 | | - run: sha256sum ./${{ matrix.TARGET_PLATFORM }}/*/examples/*.exe |
72 | | - |
73 | 67 | - name: Upload artifacts |
74 | 68 | uses: actions/upload-artifact@v2 |
75 | 69 | if: ${{ github.event_name == 'push' }} |
76 | 70 | with: |
77 | 71 | name: VS2019 |
78 | 72 | path: ./*/*/examples/*.exe |
| 73 | + |
| 74 | + - name: Display SHA-256 |
| 75 | + if: ${{ github.event_name == 'push' }} |
| 76 | + run: sha256sum ./*/*/examples/*.exe |
| 77 | + |
| 78 | + - name: Compress release-ready version of Zadig |
| 79 | + uses: crazy-max/ghaction-upx@v1 |
| 80 | + if: startsWith(github.ref, 'refs/tags/') |
| 81 | + with: |
| 82 | + version: latest |
| 83 | + files: ./Win32/Release/examples/zadig.exe |
| 84 | + args: --lzma --best |
| 85 | + |
| 86 | + - name: Rename release-ready version of Zadig |
| 87 | + if: startsWith(github.ref, 'refs/tags/') |
| 88 | + shell: cmd |
| 89 | + run: | |
| 90 | + for /f "tokens=3" %%i in ('findstr FileVersion examples\zadig.rc') do set "ver=%%i" |
| 91 | + set ver=%ver:"=% |
| 92 | + for /f "tokens=1,2 delims=." %%i in ("%ver%") do set "ZADIG_VERSION=%%i.%%j" |
| 93 | + copy Win32\Release\examples\zadig.exe zadig-%ZADIG_VERSION%.exe |
| 94 | + sha256sum zadig-*.exe |
| 95 | +
|
| 96 | + - name: Upload release-ready version of Zadig |
| 97 | + uses: actions/upload-artifact@v2 |
| 98 | + if: startsWith(github.ref, 'refs/tags/') |
| 99 | + with: |
| 100 | + name: Zadig |
| 101 | + path: ./zadig-*.exe |
0 commit comments