mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[misc] update GitHub Actions scripts
* Closes #2113 * Also fix a broken URL * PS: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ is *WOEFULLY* incomplete, in that it doesn't tell you that: 1. The new method of setting output is *NO LONGER* shell agnostic (i.e *REGRESSION*) 2. You need to use bash for the new $GITHUB_OUTPUT to work
This commit is contained in:
parent
fab095c043
commit
8d04e5f1f4
6 changed files with 21 additions and 13 deletions
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
|
@ -28,7 +28,7 @@ jobs:
|
|||
languages: cpp
|
||||
|
||||
- name: Add MSBuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
uses: microsoft/setup-msbuild@v1
|
||||
with:
|
||||
msbuild-architecture: x64
|
||||
|
||||
|
|
2
.github/workflows/coverity.yml
vendored
2
.github/workflows/coverity.yml
vendored
|
@ -44,7 +44,7 @@ jobs:
|
|||
run: echo "${{github.workspace}}/cov-analysis-win64/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Add MSBuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
uses: microsoft/setup-msbuild@v1
|
||||
|
||||
- name: Build with Coverity
|
||||
run: |
|
||||
|
|
8
.github/workflows/mingw.yml
vendored
8
.github/workflows/mingw.yml
vendored
|
@ -60,13 +60,17 @@ jobs:
|
|||
|
||||
- name: Set ALPHA
|
||||
id: set_alpha
|
||||
shell: bash
|
||||
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||
run: echo "::set-output name=option::--enable-alpha"
|
||||
# This ONLY works if the shell is bash or if using $env:GITHUB_OUTPUT
|
||||
run: echo "option=--enable-alpha" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set BETA
|
||||
id: set_beta
|
||||
shell: bash
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'BETA') }}
|
||||
run: echo "::set-output name=option::--enable-beta"
|
||||
# This ONLY works if the shell is bash or if using $env:GITHUB_OUTPUT
|
||||
run: echo "option=--enable-beta" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
|
10
.github/workflows/vs2022.yml
vendored
10
.github/workflows/vs2022.yml
vendored
|
@ -45,19 +45,23 @@ jobs:
|
|||
submodules: recursive
|
||||
|
||||
- name: Add MSBuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
uses: microsoft/setup-msbuild@v1
|
||||
with:
|
||||
msbuild-architecture: x64
|
||||
|
||||
- name: Set ALPHA
|
||||
id: set_alpha
|
||||
shell: bash
|
||||
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||
run: echo "::set-output name=option::/DALPHA"
|
||||
# This ONLY works if the shell is bash or if using $env:GITHUB_OUTPUT
|
||||
run: echo "option=/DALPHA" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set BETA
|
||||
id: set_beta
|
||||
shell: bash
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'BETA') }}
|
||||
run: echo "::set-output name=option::/DBETA"
|
||||
# This ONLY works if the shell is bash or if using $env:GITHUB_OUTPUT
|
||||
run: echo "option=/DBETA" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build
|
||||
shell: cmd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue