From 056cc231c010cc25ac73a057d1c9d5125d96d962 Mon Sep 17 00:00:00 2001 From: Ilya Bogdanov Date: Fri, 20 Dec 2024 19:38:20 +0400 Subject: [PATCH] move --- .github/workflows/gui-checks.yml | 42 ----------------------------- .github/workflows/ide-packaging.yml | 42 +++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/gui-checks.yml b/.github/workflows/gui-checks.yml index 9671a9567031..5ac10409c741 100644 --- a/.github/workflows/gui-checks.yml +++ b/.github/workflows/gui-checks.yml @@ -20,48 +20,6 @@ jobs: name: 👮 Lint GUI runs-on: ubuntu-latest steps: - - name: Check Git and bash locations - shell: pwsh - if: runner.os == 'Windows' - run: | - Write-Host "Checking Git installation..." -ForegroundColor Yellow - $gitExe = (Get-Command git.exe).Path - Write-Host "Git executable: $gitExe" - - Write-Host "`nGit version:" -ForegroundColor Yellow - git --version - - Write-Host "`nChecking for bash in Git directory..." -ForegroundColor Yellow - $gitDir = Split-Path $gitExe -Parent - $expectedBashPath = Join-Path (Split-Path $gitDir -Parent) "bin\bash.exe" - - if (Test-Path $expectedBashPath) { - Write-Host "Found bash.exe at: $expectedBashPath" - & $expectedBashPath --version - } else { - Write-Host "bash.exe not found at expected path: $expectedBashPath" - } - - Write-Host "`nAll bash.exe locations in PATH:" -ForegroundColor Yellow - Get-Command bash.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Path - - name: Add Git bin to PATH and check bash - shell: cmd - if: runner.os == 'Windows' - run: | - echo "Original PATH:" - echo %PATH% - echo. - echo "Adding Git bin to PATH..." - set "PATH=C:\Program Files\Git\bin;%PATH%" - echo. - echo "New PATH:" - echo %PATH% - echo. - echo "Checking for bash.exe..." - where bash.exe - echo. - echo "Verifying bash version:" - bash --version - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} diff --git a/.github/workflows/ide-packaging.yml b/.github/workflows/ide-packaging.yml index c98b1529dc88..a044a7eced35 100644 --- a/.github/workflows/ide-packaging.yml +++ b/.github/workflows/ide-packaging.yml @@ -169,6 +169,48 @@ jobs: - self-hosted - Windows steps: + - name: Check Git and bash locations + shell: pwsh + if: runner.os == 'Windows' + run: | + Write-Host "Checking Git installation..." -ForegroundColor Yellow + $gitExe = (Get-Command git.exe).Path + Write-Host "Git executable: $gitExe" + + Write-Host "`nGit version:" -ForegroundColor Yellow + git --version + + Write-Host "`nChecking for bash in Git directory..." -ForegroundColor Yellow + $gitDir = Split-Path $gitExe -Parent + $expectedBashPath = Join-Path (Split-Path $gitDir -Parent) "bin\bash.exe" + + if (Test-Path $expectedBashPath) { + Write-Host "Found bash.exe at: $expectedBashPath" + & $expectedBashPath --version + } else { + Write-Host "bash.exe not found at expected path: $expectedBashPath" + } + + Write-Host "`nAll bash.exe locations in PATH:" -ForegroundColor Yellow + Get-Command bash.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Path + - name: Add Git bin to PATH and check bash + shell: cmd + if: runner.os == 'Windows' + run: | + echo "Original PATH:" + echo %PATH% + echo. + echo "Adding Git bin to PATH..." + set "PATH=C:\Program Files\Git\bin;%PATH%" + echo. + echo "New PATH:" + echo %PATH% + echo. + echo "Checking for bash.exe..." + where bash.exe + echo. + echo "Verifying bash version:" + bash --version - if: startsWith(runner.name, 'GitHub Actions') || startsWith(runner.name, 'Hosted Agent') name: Installing wasm-pack uses: jetli/wasm-pack-action@v0.4.0