Skip to content

Commit

Permalink
github action #127
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Nov 28, 2024
1 parent 65f0cad commit 06933af
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
choco install python3 -y
choco install llvm -y
choco install gperf -y
pip install html5lib
- name: Cache Qt Source (Windows)
if: matrix.os == 'windows-latest'
Expand All @@ -82,28 +83,6 @@ jobs:
Write-Host "Qt source found in cache."
}
- name: Install bison Manually (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: |
$bisonPath = "C:/ProgramData/chocolatey/bin/bison.exe"
if (-not (Test-Path $bisonPath)) {
Write-Host "bison is not available. Installing manually..."
$bisonUrl = "https://mirrors.kernel.org/gnu/bison/bison-3.8.2.tar.gz"
$bisonDir = "D:/bison"
$bisonTar = "$bisonDir/bison.tar.gz"
$bisonExtractDir = "$bisonDir/bison-3.8.2"
New-Item -ItemType Directory -Path $bisonDir -Force
# Download and extract bison
Invoke-WebRequest -Uri $bisonUrl -OutFile $bisonTar -UseBasicParsing
tar -xvf $bisonTar -C $bisonDir
$env:PATH += ";$bisonExtractDir/bin"
[System.Environment]::SetEnvironmentVariable("PATH", $env:PATH, [System.EnvironmentVariableTarget]::Process)
} else {
Write-Host "bison found at $bisonPath"
}
- name: Build and Install Qt from Source (Windows)
if: matrix.os == 'windows-latest'
shell: cmd
Expand Down

0 comments on commit 06933af

Please sign in to comment.