Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ on:
jobs:
# Pester test job
pester-test:
runs-on: windows-2022
runs-on: windows-2025
steps:
# checkout
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Runs Pester all *.tests.ps1 scripts
- name: Run Pester tests
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
jobs:
publish-to-gallery:
runs-on: windows-2022
runs-on: windows-2025
steps:
# checkout
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# validate
- name: validate module
shell: pwsh
Expand Down
4 changes: 4 additions & 0 deletions PSCoreUpdate.Tests/Utils.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@ InModuleScope 'PSCoreUpdate' {
@{Expected = [AssetArchtectures]::MSIX_WINARM32; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.0.2/PowerShell-7.0.2-win-arm32.msix'},
@{Expected = [AssetArchtectures]::MSIX_WINARM64; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.0.2/PowerShell-7.0.2-win-arm64.msix'},
@{Expected = [AssetArchtectures]::MSIXBUNDLE; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.2.6/PowerShell-7.2.6-win.msixbundle'},
@{Expected = [AssetArchtectures]::MSIXBUNDLE; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.7.0/PowerShell-7.7.0.msixbundle'},
@{Expected = [AssetArchtectures]::PKG_OSX; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v6.1.0-preview.3/powershell-6.1.0-preview.3-osx.x64.pkg'},
@{Expected = [AssetArchtectures]::PKG_OSXARM64; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-rc.1/powershell-7.2.0-rc.1-osx-arm64.pkg'},
@{Expected = [AssetArchtectures]::PKG_OSX1011; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/powershell-6.0.0-alpha.18-osx.10.11-x64.pkg'},
@{Expected = [AssetArchtectures]::PKG_OSX1011; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.17/powershell-6.0.0-alpha.17.pkg'},
@{Expected = [AssetArchtectures]::PKG_OSX1012; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v6.0.0/powershell-6.0.0-osx.10.12-x64.pkg'},
@{Expected = [AssetArchtectures]::RPM_AZL4; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.7.0/powershell-7.7.0-1.azl4.x86_64.rpm'},
@{Expected = [AssetArchtectures]::RPM_AZL4ARM64; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.7.0/powershell-7.7.0-1.azl4.aarch64.rpm'},
@{Expected = [AssetArchtectures]::RPM_CM; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.2.6/powershell-7.2.6-1.cm.x86_64.rpm'},
@{Expected = [AssetArchtectures]::RPM_CMARM64; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell-7.4.3-1.cm.aarch64.rpm'},
@{Expected = [AssetArchtectures]::RPM_RH; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.5/powershell-preview-7.2.0_preview.5-1.rh.x86_64.rpm'},
@{Expected = [AssetArchtectures]::RPM_RHEL8; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.0.2/powershell-7.0.2-1.centos.8.x86_64.rpm'},
@{Expected = [AssetArchtectures]::RPM_RHEL7; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v6.0.0/powershell-6.0.0-1.rhel.7.x86_64.rpm'},
@{Expected = [AssetArchtectures]::RPM_RHEL7; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.1/powershell-6.0.0_beta.1-1.el7.centos.x86_64.rpm'},
@{Expected = [AssetArchtectures]::DEB_DEB64; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.2.0-preview.5/powershell-preview_7.2.0-preview.5-1.deb_amd64.deb'},
@{Expected = [AssetArchtectures]::DEB_DEBARM64; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.7.0/powershell_7.7.0-1.deb_arm64.deb'},
@{Expected = [AssetArchtectures]::DEB_DEBIAN8; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v6.0.0/powershell_6.0.0-1.debian.8_amd64.deb'},
@{Expected = [AssetArchtectures]::DEB_DEBIAN9; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v6.0.0/powershell_6.0.0-1.debian.9_amd64.deb'},
@{Expected = [AssetArchtectures]::DEB_DEBIAN10; DownloadUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/powershell_7.1.0-1.debian.10_amd64.deb'},
Expand Down
15 changes: 14 additions & 1 deletion PSCoreUpdate/Utils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,15 @@ enum AssetArchtectures {
PKG_OSXARM64
PKG_OSX1011
PKG_OSX1012
RPM_AZL4
RPM_AZL4ARM64
RPM_CM
RPM_CMARM64
RPM_RH
RPM_RHEL8
RPM_RHEL7
DEB_DEB64
DEB_DEBARM64
DEB_DEBIAN8
DEB_DEBIAN9
DEB_DEBIAN10
Expand Down Expand Up @@ -146,7 +149,7 @@ class PowerShellCoreAsset {
{ $_ -match "^.+win-arm64.msix$" } {
return [AssetArchtectures]::MSIX_WINARM64
}
{ $_ -match "^.+win.msixbundle$" } {
{ $_ -match "^.+.msixbundle$" } {
return [AssetArchtectures]::MSIXBUNDLE
}
# Note : PKG_OSX, PKG_OSXARM64 is for macOS 10.13 or later
Expand All @@ -156,6 +159,13 @@ class PowerShellCoreAsset {
{ $_ -match "^.+osx.arm64.pkg$" } {
return [AssetArchtectures]::PKG_OSXARM64
}
# Azure Linux 4 rpm package
{ $_ -match "^.+azl4.x86_64.rpm$" } {
return [AssetArchtectures]::RPM_AZL4
}
{ $_ -match "^.+azl4.aarch64.rpm$" } {
return [AssetArchtectures]::RPM_AZL4ARM64
}
# CBL-Mariner rpm package
{ $_ -match "^.+cm.x86_64.rpm$" } {
return [AssetArchtectures]::RPM_CM
Expand All @@ -171,6 +181,9 @@ class PowerShellCoreAsset {
{ $_ -match "^.+deb_amd64.deb$" } {
return [AssetArchtectures]::DEB_DEB64
}
{ $_ -match "^.+deb_arm64.deb$" } {
return [AssetArchtectures]::DEB_DEBARM64
}
{ $_ -match "^.+linux-arm32.tar.gz$" } {
return [AssetArchtectures]::TAR_LINUXARM32
}
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,16 @@ The types of assets are as follows.
|MSI_WIN32|[PowerShell version]-win-x86.msi|
|MSI_WIN64|[PowerShell version]-win-x64.msi|
|MSI_ARM64|[PowerShell version]-win-arm64.msi|
|MSIXBUNDLE|[PowerShell version]-win.msixbundle|
|MSIXBUNDLE|[PowerShell version]-(win|).msixbundle|
|PKG_OSX|[PowerShell version]-osx-x64.pkg|
|PKG_OSXARM64|[PowerShell version]-osx-arm64.pkg|
|RPM_AZL4|[PowerShell version]-azl4.x86_64.rpm|
|RPM_AZL4ARM64|[PowerShell version]-azl4.aarch64.rpm|
|RPM_CM|[PowerShell version]-cm.x86_64.rpm|
|RPM_CMARM64|[PowerShell version]-cm.aarch64.rpm|
|RPM_RH|[PowerShell version]-rh.x86_64.rpm|
|DEB_DEB64|[PowerShell version]-deb_amd64.deb|
|DEB_DEBARM64|[PowerShell version]-deb_arm64.deb|
|TAR_LINUXARM32|[PowerShell version]-linux-arm32.tar.gz|
|TAR_LINUXARM64|[PowerShell version]-linux-arm64.tar.gz|
|TAR_LINUXALPINE64|[PowerShell version]-linux-(musl\|alpine)-x64.tar.gz|
Expand Down