mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-04 16:53:54 -04:00
[ci] set VS2019 to produce ALPHA or BETA off release
This commit is contained in:
parent
df8058b4f3
commit
83ea7103e3
4 changed files with 27 additions and 15 deletions
14
.github/workflows/vs2019.yml
vendored
14
.github/workflows/vs2019.yml
vendored
|
@ -47,10 +47,22 @@ jobs:
|
|||
- name: Add MSBuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1
|
||||
|
||||
- name: Set ALPHA
|
||||
id: set_alpha
|
||||
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||
run: echo "::set-output name=option::/DALPHA"
|
||||
|
||||
- name: Set BETA
|
||||
id: set_beta
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'BETA') }}
|
||||
run: echo "::set-output name=option::/DBETA"
|
||||
|
||||
- name: Build
|
||||
shell: cmd
|
||||
run: |
|
||||
set ExternalCompilerOptions=${{ steps.set_alpha.outputs.option }} ${{ steps.set_beta.outputs.option }}
|
||||
msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=${{ env.BUILD_CONFIGURATION }},Platform=${{ matrix.TARGET_PLATFORM }}
|
||||
move ./${{ matrix.TARGET_PLATFORM }}/Release/rufus.exe ./rufus_${{ matrix.TARGET_PLATFORM }}.exe
|
||||
move .\${{ matrix.TARGET_PLATFORM }}\Release\rufus.exe .\rufus_${{ matrix.TARGET_PLATFORM }}.exe
|
||||
|
||||
- name: Display SHA-256
|
||||
run: sha256sum ./rufus_${{ matrix.TARGET_PLATFORM }}.exe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue