MegaBites-AI/Windows-powershell
0372
1name: CI Build2description: 'Builds PowerShell'3runs:4 using: composite5 steps:6 - name: Capture Environment7 if: success() || failure()8 run: |-9 Import-Module .\tools\ci.psm110 Show-Environment11 shell: pwsh12 - name: Set Build Name for Non-PR13 if: github.event_name != 'PullRequest'14 run: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))"15 shell: pwsh16 - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.117 with:18 global-json-file: ./global.json19 - name: Bootstrap20 if: success()21 run: |-22 Write-Verbose -Verbose "Running Bootstrap..."23 Import-Module .\tools\ci.psm124 Invoke-CIInstall -SkipUser25 Write-Verbose -Verbose "Start Sync-PSTags"26 Sync-PSTags -AddRemoteIfMissing27 Write-Verbose -Verbose "End Sync-PSTags"28 shell: pwsh29 - name: Build30 if: success()31 run: |-32 Write-Verbose -Verbose "Running Build..."33 Import-Module .\tools\ci.psm134 Invoke-CIBuild35 shell: pwsh36 - name: Upload build artifact37 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.238 with:39 name: build40 path: ${{ runner.workspace }}/build41 