mirror of
https://github.com/containers/podman.git
synced 2025-12-01 10:38:05 +08:00
Merge pull request #23324 from ashley-cui/win
Use uploaded .zip for Windows action
This commit is contained in:
25
.github/workflows/upload-win-installer.yml
vendored
25
.github/workflows/upload-win-installer.yml
vendored
@@ -78,12 +78,11 @@ jobs:
|
||||
# The podman release process requires a cross-compile of the windows binaries be uploaded to
|
||||
# the release page as a hard-coded filename. If non-existent, this workflow will fail in
|
||||
# non-obvious ways with a non-obvious error message. Address that here.
|
||||
# TODO: Remove this in a future PR once verified to not cause artifact issues
|
||||
#- name: Confirm upload_asset_name is non-empty
|
||||
# if: steps.check.outputs.upload_asset_name == '' && github.event_name != 'pull_request'
|
||||
# run: |
|
||||
# Write-Output "::error::check.ps1 script failed to find manually uploaded podman-remote-release-windows_amd64.zip github release asset for version ${{steps.getversion.outputs.version}}."
|
||||
# Exit 1
|
||||
- name: Confirm upload_asset_name is non-empty
|
||||
if: steps.check.outputs.upload_asset_name == ''
|
||||
run: |
|
||||
Write-Output "::error::check.ps1 script failed to find manually uploaded podman-remote-release-windows_amd64.zip github release asset for version ${{steps.getversion.outputs.version}}."
|
||||
Exit 1
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
# N/B: already-exists may be an empty-string or "false", handle both cases.
|
||||
@@ -109,10 +108,16 @@ jobs:
|
||||
id: build
|
||||
if: steps.check.outputs.already-exists != 'true' || steps.actual_dryrun.outputs.dryrun == 'true'
|
||||
run: |
|
||||
.\winmake.ps1 podman
|
||||
.\winmake.ps1 win-gvproxy
|
||||
.\winmake.ps1 docs
|
||||
.\winmake.ps1 installer
|
||||
Push-Location contrib\win-installer
|
||||
.\build.ps1 ${{steps.getversion.outputs.version}} prod
|
||||
$code = $LASTEXITCODE
|
||||
if ($code -eq 2) {
|
||||
Write-Output "artifact-missing=true" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
||||
Pop-Location
|
||||
Exit 0
|
||||
}
|
||||
Pop-Location
|
||||
Exit $code
|
||||
- name: Artifact
|
||||
if: steps.check.outputs.already-exists != 'true' || steps.actual_dryrun.outputs.dryrun == 'true'
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
Reference in New Issue
Block a user