mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.5] Replace fpm with native rpmbuild for RPM package generation (#26793)
This commit is contained in:
@@ -62,6 +62,9 @@ runs:
|
||||
# Create the artifacts staging directory
|
||||
New-Item -ItemType Directory -Path "$env:BUILD_ARTIFACTSTAGINGDIRECTORY" -Force | Out-Null
|
||||
|
||||
# Import packaging module to ensure RPM packaging changes are loaded
|
||||
Import-Module ./build.psm1 -Force
|
||||
Import-Module ./tools/packaging/packaging.psm1 -Force
|
||||
Import-Module ./tools/ci.psm1
|
||||
Restore-PSOptions -PSOptionsPath '${{ runner.workspace }}/build/psoptions.json'
|
||||
$options = (Get-PSOptions)
|
||||
@@ -75,6 +78,16 @@ runs:
|
||||
Invoke-CIFinish
|
||||
shell: pwsh
|
||||
|
||||
- name: Validate Package Names
|
||||
run: |-
|
||||
# Run Pester tests to validate package names
|
||||
Import-Module Pester -Force
|
||||
$testResults = Invoke-Pester -Path ./test/packaging/linux/package-validation.tests.ps1 -PassThru
|
||||
if ($testResults.FailedCount -gt 0) {
|
||||
throw "Package validation tests failed"
|
||||
}
|
||||
shell: pwsh
|
||||
|
||||
- name: Upload deb packages
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
@@ -51,6 +51,7 @@ jobs:
|
||||
# Set job outputs to values from filter step
|
||||
outputs:
|
||||
source: ${{ steps.filter.outputs.source }}
|
||||
packagingChanged: ${{ steps.filter.outputs.packagingChanged }}
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -237,7 +238,7 @@ jobs:
|
||||
needs:
|
||||
- ci_build
|
||||
- changes
|
||||
if: ${{ needs.changes.outputs.source == 'true' }}
|
||||
if: ${{ needs.changes.outputs.packagingChanged == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
|
||||
Reference in New Issue
Block a user