name: CI Build description: 'Builds PowerShell' runs: using: composite steps: - name: Capture Environment if: success() || failure() run: |- Import-Module .\tools\ci.psm1 Show-Environment shell: pwsh - name: Set Build Name for Non-PR if: github.event_name != 'PullRequest' run: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))" shell: pwsh - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 with: global-json-file: ./global.json - name: Bootstrap if: success() run: |- Write-Verbose -Verbose "Running Bootstrap..." Import-Module .\tools\ci.psm1 Invoke-CIInstall -SkipUser Write-Verbose -Verbose "Start Sync-PSTags" Sync-PSTags -AddRemoteIfMissing Write-Verbose -Verbose "End Sync-PSTags" shell: pwsh - name: Build if: success() run: |- Write-Verbose -Verbose "Running Build..." Import-Module .\tools\ci.psm1 Invoke-CIBuild shell: pwsh - name: Upload build artifact uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: build path: ${{ runner.workspace }}/build