diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 595102c..0453223 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -756,7 +756,9 @@ jobs: Install-Module -Force -Name Microsoft.WinGet.Client $moduleInstalled = $true } - foreach ($id in @('Git.Git', 'Kitware.CMake', 'LLVM.LLVM', 'Ninja-build.Ninja')) { # yamllint disable-line rule:line-length + foreach ($id in @( + 'Git.Git', 'Kitware.CMake', 'LLVM.LLVM', 'Ninja-build.Ninja' + )) { $package = Get-WinGetPackage -Id $id ` -MatchOption Equals -ErrorAction SilentlyContinue if (-not $package) { @@ -793,10 +795,13 @@ jobs: - name: build test package run: | $PSNativeCommandUseErrorActionPreference = $true - $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" # yamllint disable-line rule:line-length + $vswhere = Join-Path ${env:ProgramFiles(x86)} ` + "Microsoft Visual Studio\Installer\vswhere.exe" $vsPath = & $vswhere -latest -property installationPath - Import-Module "$vsPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" # yamllint disable-line rule:line-length - Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation -DevCmdArguments "-arch=amd64 -host_arch=amd64" # yamllint disable-line rule:line-length + Import-Module (Join-Path $vsPath ` + "Common7\Tools\Microsoft.VisualStudio.DevShell.dll") + Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation ` + -DevCmdArguments "-arch=amd64 -host_arch=amd64" mkdir _build cd _build cmake ` @@ -836,7 +841,9 @@ jobs: Install-Module -Force -Name Microsoft.WinGet.Client $moduleInstalled = $true } - foreach ($id in @('Git.Git', 'Kitware.CMake', 'LLVM.LLVM', 'Ninja-build.Ninja')) { # yamllint disable-line rule:line-length + foreach ($id in @( + 'Git.Git', 'Kitware.CMake', 'LLVM.LLVM', 'Ninja-build.Ninja' + )) { $package = Get-WinGetPackage -Id $id ` -MatchOption Equals -ErrorAction SilentlyContinue if (-not $package) { @@ -873,10 +880,13 @@ jobs: - name: build test package run: | $PSNativeCommandUseErrorActionPreference = $true - $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" # yamllint disable-line rule:line-length + $vswhere = Join-Path ${env:ProgramFiles(x86)} ` + "Microsoft Visual Studio\Installer\vswhere.exe" $vsPath = & $vswhere -latest -property installationPath - Import-Module "$vsPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" # yamllint disable-line rule:line-length - Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation -DevCmdArguments "-arch=arm64 -host_arch=arm64" # yamllint disable-line rule:line-length + Import-Module (Join-Path $vsPath ` + "Common7\Tools\Microsoft.VisualStudio.DevShell.dll") + Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation ` + -DevCmdArguments "-arch=arm64 -host_arch=arm64" mkdir _build cd _build cmake ` diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index 166045c..6dbc39e 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -609,7 +609,9 @@ jobs: run: | Install-Module -Force -Name Microsoft.WinGet.Client Repair-WinGetPackageManager -Force -Latest - foreach ($id in @('Git.Git', 'LLVM.LLVM', 'mesonbuild.meson', 'Ninja-build.Ninja')) { # yamllint disable-line rule:line-length + foreach ($id in @( + 'Git.Git', 'LLVM.LLVM', 'mesonbuild.meson', 'Ninja-build.Ninja' + )) { $package = Get-WinGetPackage -Id $id ` -MatchOption Equals -ErrorAction SilentlyContinue if (-not $package) { @@ -669,7 +671,9 @@ jobs: run: | Install-Module -Force -Name Microsoft.WinGet.Client Repair-WinGetPackageManager -Force -Latest - foreach ($id in @('Git.Git', 'LLVM.LLVM', 'mesonbuild.meson', 'Ninja-build.Ninja')) { # yamllint disable-line rule:line-length + foreach ($id in @( + 'Git.Git', 'LLVM.LLVM', 'mesonbuild.meson', 'Ninja-build.Ninja' + )) { $package = Get-WinGetPackage -Id $id ` -MatchOption Equals -ErrorAction SilentlyContinue if (-not $package) {