mirror of https://github.com/containers/podman.git
Update win-installer github job for arm64
Adds the build of the arm64 windows installer as part of the release
GitHub workflow.
When a Windows installer is uploaded to the GitHub release, it is named
consistently with the macOS one:
`podman-installer-windows-${GOARCH}.exe`
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
This commit is contained in:
parent
eecb4122f7
commit
66283624bd
|
|
@ -144,6 +144,9 @@ jobs:
|
||||||
|
|
||||||
windows-installer:
|
windows-installer:
|
||||||
name: Build Windows Installer
|
name: Build Windows Installer
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
arch: [amd64, arm64]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: [check, build-artifacts]
|
needs: [check, build-artifacts]
|
||||||
env:
|
env:
|
||||||
|
|
@ -198,13 +201,29 @@ jobs:
|
||||||
}
|
}
|
||||||
Pop-Location
|
Pop-Location
|
||||||
Exit $code
|
Exit $code
|
||||||
- name: Display structure of downloaded files
|
env:
|
||||||
|
PODMAN_ARCH: ${{ matrix.arch }}
|
||||||
|
- name: Display structure of built files
|
||||||
run: |
|
run: |
|
||||||
Push-Location contrib\win-installer
|
Push-Location contrib\win-installer
|
||||||
Get-ChildItem
|
Get-ChildItem
|
||||||
Pop-Location
|
Pop-Location
|
||||||
- name: Artifact
|
- name: Rename the installer
|
||||||
|
run: |
|
||||||
|
Push-Location contrib\win-installer
|
||||||
|
Copy-Item -Path podman-${{steps.getversion.outputs.version}}-setup.exe -Destination podman-installer-windows-${{ matrix.arch }}.exe
|
||||||
|
Pop-Location
|
||||||
|
- name: Upload the installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: win-installer-${{ matrix.arch }}
|
||||||
|
path: |
|
||||||
|
.\contrib\win-installer\podman-installer-windows-${{ matrix.arch }}.exe
|
||||||
|
# For backwards compatibility, we also upload the amd64 windows
|
||||||
|
# installer using the old name
|
||||||
|
- name: Upload the installer (legacy)
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: ${{ matrix.arch == 'amd64' }}
|
||||||
with:
|
with:
|
||||||
name: win-installer
|
name: win-installer
|
||||||
path: |
|
path: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue