Skip to content

Update all product versions to 2026.2.1 #37

Update all product versions to 2026.2.1

Update all product versions to 2026.2.1 #37

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
sign_code:
description: Sign build outputs
required: false
type: boolean
default: false
jobs:
build:
name: Build repository
timeout-minutes: 120
runs-on: windows-latest
env:
SIGNING_CODE: ${{ github.event_name == 'workflow_dispatch' && inputs.sign_code && secrets.SIGNING_CODE || '' }}
AZURE_CLIENT_ID: ${{ github.event_name == 'workflow_dispatch' && inputs.sign_code && secrets.AZURE_CLIENT_ID || '' }}
AZURE_TENANT_ID: ${{ github.event_name == 'workflow_dispatch' && inputs.sign_code && secrets.AZURE_TENANT_ID || '' }}
AZURE_CLIENT_SECRET: ${{ github.event_name == 'workflow_dispatch' && inputs.sign_code && secrets.AZURE_CLIENT_SECRET || '' }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nuget/setup-nuget@v1
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- uses: actions/cache@v4
id: cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- uses: actions/cache@v4
id: cache2
with:
path: .\packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.config') }}
- name: Restore
shell: pwsh
run: |
dotnet restore PowerShellTools.sln
nuget restore PowerShellTools.sln
- name: Image Manifest
shell: pwsh
run: |
$Xml = [Xml](Get-Content .\Build\Common.Build.settings)
$Version = $Xml.Project.PropertyGroup[1].appveyor_build_version
.\PowerShellTools\prebuild.ps1 -Version $Version
.\PowerShellTools.2022\prebuild.ps1 -Version $Version
- name: Build Ironman Host
shell: pwsh
run: |
Push-Location IronmanPowerShellHost
dotnet publish -f net472 -c Release .\IronmanPowerShellHost.csproj
Pop-Location
- name: Build Visual Studio extensions
shell: pwsh
run: |
$devenv = .\Build\vswhere.exe -latest -property productPath | Split-Path
msbuild PowerShellTools.sln -p:Configuration=Release -p:Platform="Any CPU" -p:DevEnvDir="$devenv"
- name: Build Windows Form Designer
shell: pwsh
run: |
$Version = Get-Content .\WinFormDesigner\version.txt -Raw
msbuild PowerShellTools.sln -t:rebuild -p:Configuration=Release -p:Platform=x64 -p:Version=$Version
- name: Build Cmdlets
shell: pwsh
run: |
.\PowerShellToolsPro.Cmdlets\build.ps1
- name: Build VS Code extension
shell: pwsh
run: |
Import-Module .\Build\Modules\InvokeBuild\5.14.23\InvokeBuild.psd1 -Force
Install-Module Microsoft.PowerShell.PlatyPS -RequiredVersion 1.0.1 -Scope CurrentUser -Force -AllowClobber
Invoke-Build -File .\vscode\vscode.build.ps1
- name: Upload Visual Studio extensions
uses: actions/upload-artifact@v4
with:
name: PowerShellTools.VisualStudio
path: bin\Release\PowerShellTools.*.vsix
- name: Upload Ironman Host
uses: actions/upload-artifact@v4
with:
name: PowerShellTools.Host
path: IronmanPowerShellHost\bin\Release
- name: Upload Cmdlets
uses: actions/upload-artifact@v4
with:
name: PowerShellTools.Cmdlets
path: PowerShellToolsPro.Cmdlets\out
- name: Upload VS Code extension
uses: actions/upload-artifact@v4
with:
name: PowerShellTools.VSCode
path: vscode\powershellprotools\kit\powershellprotools-*.vsix
- name: Upload Windows Form Designer
uses: actions/upload-artifact@v4
with:
name: PowerShellTools.WinFormDesigner
path: WinFormDesigner\bin\x64\Release\*.exe