File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 152152 default : false
153153 type : boolean
154154
155+ install-gpg :
156+ description : Ensure all build images have GnuPG installed
157+ required : false
158+ default : false
159+ type : boolean
160+
155161# allow single build per branch or PR
156162concurrency :
157163 group : ${{ github.workflow }}-${{ github.ref }}
@@ -262,6 +268,23 @@ jobs:
262268 run : |
263269 brew install mercurial
264270
271+ - name : Install GnuPG
272+ if : >
273+ inputs.install-gpg &&
274+ steps.should-run.conclusion == 'success' &&
275+ matrix.os == 'windows-latest'
276+ run : |
277+ $env:PATH = "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin"
278+ [Environment]::SetEnvironmentVariable("Path", $env:PATH, "Machine")
279+ choco install --yes gpg4win
280+ echo "C:\Program Files (x86)\Gpg4win\..\GnuPG\bin" >> $env:GITHUB_PATH
281+
282+ - name : Check GnuPG
283+ if : >
284+ inputs.install-gpg &&
285+ steps.should-run.conclusion == 'success'
286+ run : gpg --version
287+
265288 - name : Show free disk space
266289 if : steps.should-run.conclusion == 'success'
267290 run : df -h
You can’t perform that action at this time.
0 commit comments