From 3d045b76a1bc46b82cb09b55a8d05d08c0ee261b Mon Sep 17 00:00:00 2001 From: Josh Wong Date: Mon, 17 Jul 2023 22:29:02 -0700 Subject: [PATCH] Removed all macos and windows build scripts --- .github/actions/build-plugin/action.yml | 46 ---- .github/actions/package-plugin/action.yml | 69 ------ .github/scripts/.Brewfile | 6 - .github/scripts/.Wingetfile | 3 - .github/scripts/Build-Windows.ps1 | 101 -------- .github/scripts/Package-Windows.ps1 | 92 ------- .github/scripts/build-macos.zsh | 1 - .github/scripts/package-macos.zsh | 1 - .github/scripts/utils.pwsh/Check-Git.ps1 | 25 -- .../scripts/utils.pwsh/Ensure-Location.ps1 | 29 --- .../scripts/utils.pwsh/Expand-ArchiveExt.ps1 | 70 ------ .../utils.pwsh/Install-BuildDependencies.ps1 | 60 ----- .../scripts/utils.pwsh/Invoke-External.ps1 | 40 --- .../scripts/utils.pwsh/Invoke-GitCheckout.ps1 | 117 --------- .github/scripts/utils.pwsh/Logger.ps1 | 123 ---------- .github/scripts/utils.pwsh/Setup-Host.ps1 | 103 -------- .github/scripts/utils.pwsh/Setup-Obs.ps1 | 84 ------- .github/scripts/utils.zsh/check_macos | 20 -- .github/scripts/utils.zsh/setup_macos | 127 ---------- .github/scripts/utils.zsh/setup_obs | 26 +- .github/workflows/clang-format.yml | 20 -- .github/workflows/main.yml | 230 +----------------- 22 files changed, 5 insertions(+), 1388 deletions(-) delete mode 100644 .github/scripts/.Brewfile delete mode 100644 .github/scripts/.Wingetfile delete mode 100644 .github/scripts/Build-Windows.ps1 delete mode 100644 .github/scripts/Package-Windows.ps1 delete mode 120000 .github/scripts/build-macos.zsh delete mode 120000 .github/scripts/package-macos.zsh delete mode 100644 .github/scripts/utils.pwsh/Check-Git.ps1 delete mode 100644 .github/scripts/utils.pwsh/Ensure-Location.ps1 delete mode 100644 .github/scripts/utils.pwsh/Expand-ArchiveExt.ps1 delete mode 100644 .github/scripts/utils.pwsh/Install-BuildDependencies.ps1 delete mode 100644 .github/scripts/utils.pwsh/Invoke-External.ps1 delete mode 100644 .github/scripts/utils.pwsh/Invoke-GitCheckout.ps1 delete mode 100644 .github/scripts/utils.pwsh/Logger.ps1 delete mode 100644 .github/scripts/utils.pwsh/Setup-Host.ps1 delete mode 100644 .github/scripts/utils.pwsh/Setup-Obs.ps1 delete mode 100644 .github/scripts/utils.zsh/check_macos delete mode 100644 .github/scripts/utils.zsh/setup_macos delete mode 100644 .github/workflows/clang-format.yml diff --git a/.github/actions/build-plugin/action.yml b/.github/actions/build-plugin/action.yml index 1e91d15..f1fd5a1 100644 --- a/.github/actions/build-plugin/action.yml +++ b/.github/actions/build-plugin/action.yml @@ -8,18 +8,6 @@ inputs: description: 'Build configuration' required: false default: 'Release' - codesign: - description: 'Enable codesigning (macOS only)' - required: false - default: 'false' - codesignIdent: - description: 'Developer ID for application codesigning (macOS only)' - required: false - default: '-' - visualStudio: - description: 'Visual Studio version (Windows only)' - required: false - default: 'Visual Studio 16 2019' workingDirectory: description: 'Working directory for packaging' required: false @@ -27,22 +15,6 @@ inputs: runs: using: 'composite' steps: - - name: Run macOS Build - if: ${{ runner.os == 'macOS' }} - shell: zsh {0} - env: - CODESIGN_IDENT: ${{ inputs.codesignIdent }} - run: | - build_args=( - -c ${{ inputs.config }} - -t macos-${{ inputs.target }} - ) - - if [[ '${{ inputs.codesign }}' == 'true' ]] build_args+=(-s) - if (( ${+CI} && ${+RUNNER_DEBUG} )) build_args+=(--debug) - - ${{ inputs.workingDirectory }}/.github/scripts/build-macos.zsh ${build_args} - - name: Run Linux Build if: ${{ runner.os == 'Linux' }} shell: bash @@ -57,21 +29,3 @@ runs: fi ${{ inputs.workingDirectory }}/.github/scripts/build-linux.sh "${build_args[@]}" - - - name: Run Windows Build - if: ${{ runner.os == 'Windows' }} - shell: pwsh - run: | - $BuildArgs = @{ - Target = '${{ inputs.target }}' - Configuration = '${{ inputs.config }}' - CMakeGenerator = '${{ inputs.visualStudio }}' - } - - if ( ( Test-Path env:CI ) -and ( Test-Path env:RUNNER_DEBUG ) ) { - $BuildArgs += @{ - Debug = $true - } - } - - ${{ inputs.workingDirectory }}/.github/scripts/Build-Windows.ps1 @BuildArgs diff --git a/.github/actions/package-plugin/action.yml b/.github/actions/package-plugin/action.yml index 094803e..682d877 100644 --- a/.github/actions/package-plugin/action.yml +++ b/.github/actions/package-plugin/action.yml @@ -8,34 +8,6 @@ inputs: description: 'Build configuration' required: false default: 'Release' - codesign: - description: 'Enable codesigning (macOS only)' - required: false - default: 'false' - notarize: - description: 'Enable notarization (macOS only)' - required: false - default: 'false' - codesignIdent: - description: 'Developer ID for application codesigning (macOS only)' - required: false - default: '-' - installerIdent: - description: 'Developer ID for installer package codesigning (macOS only)' - required: false - default: '' - codesignUser: - description: 'Apple ID username for notarization (macOS only)' - required: false - default: '' - codesignPass: - description: 'Apple ID password for notarization (macOS only)' - required: false - default: '' - createInstaller: - description: 'Create InnoSetup installer (Windows only)' - required: false - default: 'false' workingDirectory: description: 'Working directory for packaging' required: false @@ -43,26 +15,6 @@ inputs: runs: using: 'composite' steps: - - name: Run macOS packaging - if: ${{ runner.os == 'macOS' }} - shell: zsh {0} - env: - CODESIGN_IDENT: ${{ inputs.codesignIdent }} - CODESIGN_IDENT_INSTALLER: ${{ inputs.installerIdent }} - CODESIGN_IDENT_USER: ${{ inputs.codesignUser }} - CODESIGN_IDENT_PASS: ${{ inputs.codesignPass }} - run: | - package_args=( - -c ${{ inputs.config }} - -t macos-${{ inputs.target }} - ) - - if [[ '${{ inputs.codesign }}' == 'true' ]] package_args+=(-s) - if [[ '${{ inputs.notarize }}' == 'true' ]] package_args+=(-n) - if (( ${+CI} && ${+RUNNER_DEBUG} )) build_args+=(--debug) - - ${{ inputs.workingDirectory }}/.github/scripts/package-macos.zsh ${package_args} - - name: Run Linux packaging if: ${{ runner.os == 'Linux' }} shell: bash @@ -76,24 +28,3 @@ runs: fi ${{ inputs.workingDirectory }}/.github/scripts/package-linux.sh "${package_args[@]}" - - - name: Run Windows packaging - if: ${{ runner.os == 'Windows' }} - shell: pwsh - run: | - $PackageArgs = @{ - Target = '${{ inputs.target }}' - Configuration = '${{ inputs.config }}' - } - - if ( '${{ inputs.createInstaller }}' -eq 'true' ) { - $PackageArgs += @{BuildInstaller = $true} - } - - if ( ( Test-Path env:CI ) -and ( Test-Path env:RUNNER_DEBUG ) ) { - $BuildArgs += @{ - Debug = $true - } - } - - ${{ inputs.workingDirectory }}/.github/scripts/Package-Windows.ps1 @PackageArgs diff --git a/.github/scripts/.Brewfile b/.github/scripts/.Brewfile deleted file mode 100644 index 6990ecf..0000000 --- a/.github/scripts/.Brewfile +++ /dev/null @@ -1,6 +0,0 @@ -brew "ccache" -brew "coreutils" -brew "cmake" -brew "git" -brew "jq" -brew "ninja" diff --git a/.github/scripts/.Wingetfile b/.github/scripts/.Wingetfile deleted file mode 100644 index 4e7c46e..0000000 --- a/.github/scripts/.Wingetfile +++ /dev/null @@ -1,3 +0,0 @@ -package '7zip.7zip', path: '7-zip', bin: '7z' -package 'cmake', path: 'Cmake\bin', bin: 'cmake' -package 'innosetup', path: 'Inno Setup 6', bin: 'iscc' diff --git a/.github/scripts/Build-Windows.ps1 b/.github/scripts/Build-Windows.ps1 deleted file mode 100644 index 5af7c86..0000000 --- a/.github/scripts/Build-Windows.ps1 +++ /dev/null @@ -1,101 +0,0 @@ -[CmdletBinding()] -param( - [ValidateSet('Debug', 'RelWithDebInfo', 'Release', 'MinSizeRel')] - [string] $Configuration = 'RelWithDebInfo', - [ValidateSet('x86', 'x64')] - [string] $Target, - [ValidateSet('Visual Studio 17 2022', 'Visual Studio 16 2019')] - [string] $CMakeGenerator, - [switch] $SkipAll, - [switch] $SkipBuild, - [switch] $SkipDeps, - [switch] $SkipUnpack -) - -$ErrorActionPreference = 'Stop' - -if ( $DebugPreference -eq 'Continue' ) { - $VerbosePreference = 'Continue' - $InformationPreference = 'Continue' -} - -if ( $PSVersionTable.PSVersion -lt '7.0.0' ) { - Write-Warning 'The obs-deps PowerShell build script requires PowerShell Core 7. Install or upgrade your PowerShell version: https://aka.ms/pscore6' - exit 2 -} - -function Build { - trap { - Pop-Location -Stack BuildTemp -ErrorAction 'SilentlyContinue' - Write-Error $_ - exit 2 - } - - $ScriptHome = $PSScriptRoot - $ProjectRoot = Resolve-Path -Path "$PSScriptRoot/../.." - $BuildSpecFile = "${ProjectRoot}/buildspec.json" - - $UtilityFunctions = Get-ChildItem -Path $PSScriptRoot/utils.pwsh/*.ps1 -Recurse - - foreach($Utility in $UtilityFunctions) { - Write-Debug "Loading $($Utility.FullName)" - . $Utility.FullName - } - - $BuildSpec = Get-Content -Path ${BuildSpecFile} -Raw | ConvertFrom-Json - $ProductName = $BuildSpec.name - $ProductVersion = $BuildSpec.version - - $script:DepsVersion = '' - $script:QtVersion = '5' - $script:VisualStudioVersion = '' - $script:PlatformSDK = '10.0.18363.657' - - Setup-Host - - if ( $CmakeGenerator -eq '' ) { - $CmakeGenerator = $script:VisualStudioVersion - } - - (Get-Content -Path ${ProjectRoot}/CMakeLists.txt -Raw) ` - -replace "project\((.*) VERSION (.*)\)", "project(${ProductName} VERSION ${ProductVersion})" ` - | Out-File -Path ${ProjectRoot}/CMakeLists.txt -NoNewline - - Setup-Obs - - Push-Location -Stack BuildTemp - if ( ! ( ( $SkipAll ) -or ( $SkipBuild ) ) ) { - Ensure-Location $ProjectRoot - - $DepsPath = "plugin-deps-${script:DepsVersion}-qt${script:QtVersion}-${script:Target}" - $CmakeArgs = @( - '-G', $CmakeGenerator - "-DCMAKE_SYSTEM_VERSION=${script:PlatformSDK}" - "-DCMAKE_GENERATOR_PLATFORM=$(if (${script:Target} -eq "x86") { "Win32" } else { "x64" })" - "-DCMAKE_BUILD_TYPE=${Configuration}" - "-DCMAKE_PREFIX_PATH:PATH=$(Resolve-Path -Path "${ProjectRoot}/../obs-build-dependencies/${DepsPath}")" - "-DQT_VERSION=${script:QtVersion}" - ) - - Log-Debug "Attempting to configure OBS with CMake arguments: $($CmakeArgs | Out-String)" - Log-Information "Configuring ${ProductName}..." - Invoke-External cmake -S . -B build_${script:Target} @CmakeArgs - - $CmakeArgs = @( - '--config', "${Configuration}" - ) - - if ( $VerbosePreference -eq 'Continue' ) { - $CmakeArgs+=('--verbose') - } - - Log-Information "Building ${ProductName}..." - Invoke-External cmake --build "build_${script:Target}" @CmakeArgs - } - Log-Information "Install ${ProductName}..." - Invoke-External cmake --install "build_${script:Target}" --prefix "${ProjectRoot}/release" @CmakeArgs - - Pop-Location -Stack BuildTemp -} - -Build diff --git a/.github/scripts/Package-Windows.ps1 b/.github/scripts/Package-Windows.ps1 deleted file mode 100644 index a01b10c..0000000 --- a/.github/scripts/Package-Windows.ps1 +++ /dev/null @@ -1,92 +0,0 @@ -[CmdletBinding()] -param( - [ValidateSet('Debug', 'RelWithDebInfo', 'Release', 'MinSizeRel')] - [string] $Configuration = 'RelWithDebInfo', - [ValidateSet('x86', 'x64', 'x86+x64')] - [string] $Target, - [switch] $BuildInstaller = $false -) - -$ErrorActionPreference = 'Stop' - -if ( $DebugPreference -eq 'Continue' ) { - $VerbosePreference = 'Continue' - $InformationPreference = 'Continue' -} - -if ( $PSVersionTable.PSVersion -lt '7.0.0' ) { - Write-Warning 'The obs-deps PowerShell build script requires PowerShell Core 7. Install or upgrade your PowerShell version: https://aka.ms/pscore6' - exit 2 -} - -function Package { - trap { - Write-Error $_ - exit 2 - } - - $ScriptHome = $PSScriptRoot - $ProjectRoot = Resolve-Path -Path "$PSScriptRoot/../.." - $BuildSpecFile = "${ProjectRoot}/buildspec.json" - - $UtilityFunctions = Get-ChildItem -Path $PSScriptRoot/utils.pwsh/*.ps1 -Recurse - - foreach( $Utility in $UtilityFunctions ) { - Write-Debug "Loading $($Utility.FullName)" - . $Utility.FullName - } - - $BuildSpec = Get-Content -Path ${BuildSpecFile} -Raw | ConvertFrom-Json - $ProductName = $BuildSpec.name - $ProductVersion = $BuildSpec.version - - $OutputName = "${ProductName}-${ProductVersion}-windows-${Target}" - - Install-BuildDependencies -WingetFile "${ScriptHome}/.Wingetfile" - - Log-Information "Packaging ${ProductName}..." - - $RemoveArgs = @{ - ErrorAction = 'SilentlyContinue' - Path = @( - "${ProjectRoot}/release/${ProductName}-*-windows-*.zip" - "${ProjectRoot}/release/${ProductName}-*-windows-*.exe" - ) - } - - Remove-Item @RemoveArgs - - if ( ( $BuildInstaller ) ) { - if ( $Target -eq 'x86+x64' ) { - $IsccCandidates = Get-ChildItem -Recurse -Path '*.iss' - - if ( $IsccCandidates.length -gt 0 ) { - $IsccFile = $IsccCandidates[0].FullName - } else { - $IsccFile = '' - } - } else { - $IsccFile = "${ProjectRoot}/build_${Target}/installer-Windows.generated.iss" - } - - if ( ! ( Test-Path -Path $IsccFile ) ) { - throw 'InnoSetup install script not found. Run the build script or the CMake build and install procedures first.' - } - - Log-Information 'Creating InnoSetup installer...' - Push-Location -Stack BuildTemp - Ensure-Location -Path "${ProjectRoot}/release" - Invoke-External iscc ${IsccFile} /O. /F"${OutputName}-Installer" - Pop-Location -Stack BuildTemp - } - - $CompressArgs = @{ - Path = (Get-ChildItem -Path "${ProjectRoot}/release" -Exclude "${OutputName}*.*") - CompressionLevel = 'Optimal' - DestinationPath = "${ProjectRoot}/release/${OutputName}.zip" - } - - Compress-Archive -Force @CompressArgs -} - -Package diff --git a/.github/scripts/build-macos.zsh b/.github/scripts/build-macos.zsh deleted file mode 120000 index 11e4d76..0000000 --- a/.github/scripts/build-macos.zsh +++ /dev/null @@ -1 +0,0 @@ -.build.zsh \ No newline at end of file diff --git a/.github/scripts/package-macos.zsh b/.github/scripts/package-macos.zsh deleted file mode 120000 index b3590ee..0000000 --- a/.github/scripts/package-macos.zsh +++ /dev/null @@ -1 +0,0 @@ -.package.zsh \ No newline at end of file diff --git a/.github/scripts/utils.pwsh/Check-Git.ps1 b/.github/scripts/utils.pwsh/Check-Git.ps1 deleted file mode 100644 index b85c900..0000000 --- a/.github/scripts/utils.pwsh/Check-Git.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -function Check-Git { - <# - .SYNOPSIS - Ensures available git executable on host system. - .DESCRIPTION - Checks whether a git command is available on the host system. If none is found, - Git is installed via winget. - .EXAMPLE - Check-Git - #> - - if ( ! ( Test-Path function:Log-Info ) ) { - . $PSScriptRoot/Logger.ps1 - } - - Log-Information 'Checking for Git executable...' - - if ( ! ( Get-Command git ) ) { - Log-Warning 'No Git executable found. Will try to install via winget.' - winget install git - } else { - Log-Debug "Git found at $(Get-Command git)." - Log-Status "Git found." - } -} diff --git a/.github/scripts/utils.pwsh/Ensure-Location.ps1 b/.github/scripts/utils.pwsh/Ensure-Location.ps1 deleted file mode 100644 index 36fb2f7..0000000 --- a/.github/scripts/utils.pwsh/Ensure-Location.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -function Ensure-Location { - <# - .SYNOPSIS - Ensures current location to be set to specified directory. - .DESCRIPTION - If specified directory exists, switch to it. Otherwise create it, - then switch. - .EXAMPLE - Ensure-Location "My-Directory" - Ensure-Location -Path "Path-To-My-Directory" - #> - - param( - [Parameter(Mandatory)] - [string] $Path - ) - - if ( ! ( Test-Path $Path ) ) { - $_Params = @{ - ItemType = "Directory" - Path = ${Path} - ErrorAction = "SilentlyContinue" - } - - New-Item @_Params | Set-Location - } else { - Set-Location -Path ${Path} - } -} diff --git a/.github/scripts/utils.pwsh/Expand-ArchiveExt.ps1 b/.github/scripts/utils.pwsh/Expand-ArchiveExt.ps1 deleted file mode 100644 index 13d6e6f..0000000 --- a/.github/scripts/utils.pwsh/Expand-ArchiveExt.ps1 +++ /dev/null @@ -1,70 +0,0 @@ -function Expand-ArchiveExt { - <# - .SYNOPSIS - Expands archive files. - .DESCRIPTION - Allows extraction of zip, 7z, gz, and xz archives. - Requires tar and 7-zip to be available on the system. - Archives ending with .zip but created using LZMA compression are - expanded using 7-zip as a fallback. - .EXAMPLE - Expand-ArchiveExt -Path - Expand-ArchiveExt -Path -DestinationPath - #> - - param( - [Parameter(Mandatory)] - [string] $Path, - [string] $DestinationPath = [System.IO.Path]::GetFileNameWithoutExtension($Path), - [switch] $Force - ) - - switch ( [System.IO.Path]::GetExtension($Path) ) { - .zip { - try { - Expand-Archive -Path $Path -DestinationPath $DestinationPath -Force:$Force - } catch { - if ( Get-Command 7z ) { - Invoke-External 7z x -y $Path "-o${DestinationPath}" - } else { - throw "Fallback utility 7-zip not found. Please install 7-zip first." - } - } - break - } - { ( $_ -eq ".7z" ) -or ( $_ -eq ".exe" ) } { - if ( Get-Command 7z ) { - Invoke-External 7z x -y $Path "-o${DestinationPath}" - } else { - throw "Extraction utility 7-zip not found. Please install 7-zip first." - } - break - } - .gz { - try { - Invoke-External tar -x -o $DestinationPath -f $Path - } catch { - if ( Get-Command 7z ) { - Invoke-External 7z x -y $Path "-o${DestinationPath}" - } else { - throw "Fallback utility 7-zip not found. Please install 7-zip first." - } - } - break - } - .xz { - try { - Invoke-External tar -x -o $DestinationPath -f $Path - } catch { - if ( Get-Command 7z ) { - Invoke-External 7z x -y $Path "-o${DestinationPath}" - } else { - throw "Fallback utility 7-zip not found. Please install 7-zip first." - } - } - } - default { - throw "Unsupported archive extension provided." - } - } -} diff --git a/.github/scripts/utils.pwsh/Install-BuildDependencies.ps1 b/.github/scripts/utils.pwsh/Install-BuildDependencies.ps1 deleted file mode 100644 index 8b3d0bf..0000000 --- a/.github/scripts/utils.pwsh/Install-BuildDependencies.ps1 +++ /dev/null @@ -1,60 +0,0 @@ -function Install-BuildDependencies { - <# - .SYNOPSIS - Installs required build dependencies. - .DESCRIPTION - Additional packages might be needed for successful builds. This module contains additional - dependencies available for installation via winget and, if possible, adds their locations - to the environment path for future invocation. - .EXAMPLE - Install-BuildDependencies - #> - - param( - [string] $WingetFile = "$PSScriptRoot/.Wingetfile" - ) - - if ( ! ( Test-Path function:Log-Warning ) ) { - . $PSScriptRoot/Logger.ps1 - } - - $Host64Bit = [System.Environment]::Is64BitOperatingSystem - - $Paths = $Env:Path -split [System.IO.Path]::PathSeparator - - $WingetOptions = @('install', '--accept-package-agreements', '--accept-source-agreements') - - if ( $script:Quiet ) { - $WingetOptions += '--silent' - } - - Get-Content $WingetFile | ForEach-Object { - $_, $Package, $_, $Path, $_, $Binary = ([regex]::Split($_, " (?=(?:[^']|'[^']*')*$)")) -replace ',', '' -replace "'",'' - - (${Env:ProgramFiles(x86)}, $Env:ProgramFiles) | ForEach-Object { - $Prefix = $_ - $FullPath = "${Prefix}\${Path}" - if ( ( Test-Path $FullPath ) -and ! ( $Paths -contains $FullPath ) ) { - $Paths += $FullPath - $Env:Path = $Paths -join [System.IO.Path]::PathSeparator - } - } - - Log-Debug "Checking for command ${Binary}" - $Found = Get-Command -ErrorAction SilentlyContinue $Binary - - if ( $Found ) { - Log-Status "Found dependency ${Binary} as $($Found.Source)" - } else { - Log-Status "Installing package ${Package}" - - try { - $Params = $WingetOptions + $Package - - winget @Params - } catch { - throw "Error while installing winget package ${Package}: $_" - } - } - } -} diff --git a/.github/scripts/utils.pwsh/Invoke-External.ps1 b/.github/scripts/utils.pwsh/Invoke-External.ps1 deleted file mode 100644 index d1bfb75..0000000 --- a/.github/scripts/utils.pwsh/Invoke-External.ps1 +++ /dev/null @@ -1,40 +0,0 @@ -function Invoke-External { - <# - .SYNOPSIS - Invokes a non-PowerShell command. - .DESCRIPTION - Runs a non-PowerShell command, and captures its return code. - Throws an exception if the command returns non-zero. - .EXAMPLE - Invoke-External 7z x $MyArchive - #> - - if ( $args.Count -eq 0 ) { - throw 'Invoke-External called without arguments.' - } - - if ( ! ( Test-Path function:Log-Information ) ) { - . $PSScriptRoot/Logger.ps1 - } - - $Command = $args[0] - $CommandArgs = @() - - if ( $args.Count -gt 1) { - $CommandArgs = $args[1..($args.Count - 1)] - } - - $_EAP = $ErrorActionPreference - $ErrorActionPreference = "Continue" - - Log-Debug "Invoke-External: ${Command} ${CommandArgs}" - - & $command $commandArgs - $Result = $LASTEXITCODE - - $ErrorActionPreference = $_EAP - - if ( $Result -ne 0 ) { - throw "${Command} ${CommandArgs} exited with non-zero code ${Result}." - } -} diff --git a/.github/scripts/utils.pwsh/Invoke-GitCheckout.ps1 b/.github/scripts/utils.pwsh/Invoke-GitCheckout.ps1 deleted file mode 100644 index b287a0a..0000000 --- a/.github/scripts/utils.pwsh/Invoke-GitCheckout.ps1 +++ /dev/null @@ -1,117 +0,0 @@ -function Set-GitConfig { - <# - .SYNOPSIS - Sets a git config value. - .DESCRIPTION - Allows setting single or multiple config values in a PowerShell-friendly fashion. - .EXAMPLE - Set-GitConfig advice.detachedHead false - #> - - if ( $args.Count -lt 2 ) { - throw 'Set-GitConfig called without required arguments