ci: add -y to choco install to prevent interactive timeouts
Build and Release Windows Client / build (push) Failing after 45s
Build and Release Windows Client / build (push) Failing after 45s
This commit is contained in:
1 parent
ba4aad6a74
commit
94c7e590fb
1 file changed
+3
-4
@@ -18,20 +18,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: |
|
run: |
|
||||||
# Bypass execution policy for the current session
|
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force
|
Set-ExecutionPolicy Bypass -Scope Process -Force
|
||||||
$installDir = "$env:USERPROFILE\.cargo\bin"
|
$installDir = "$env:USERPROFILE\.cargo\bin"
|
||||||
if (-not (Test-Path $installDir)) {
|
if (-not (Test-Path $installDir)) {
|
||||||
Invoke-WebRequest -Uri "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe" -OutFile "rustup-init.exe"
|
Invoke-WebRequest -Uri "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe" -OutFile "rustup-init.exe"
|
||||||
.\rustup-init.exe -y --default-toolchain stable
|
.\rustup-init.exe -y --default-toolchain stable
|
||||||
}
|
}
|
||||||
# Append to GITHUB_PATH for subsequent steps
|
|
||||||
Add-Content -Path $env:GITHUB_PATH -Value $installDir
|
Add-Content -Path $env:GITHUB_PATH -Value $installDir
|
||||||
|
|
||||||
- name: Install LLVM
|
- name: Install LLVM
|
||||||
run: |
|
run: |
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force
|
Set-ExecutionPolicy Bypass -Scope Process -Force
|
||||||
choco install llvm --no-progress
|
# Use -y to automatically accept all scripts and licenses
|
||||||
|
choco install llvm -y --no-progress
|
||||||
|
|
||||||
- name: Build Client
|
- name: Build Client
|
||||||
run: |
|
run: |
|
||||||
@@ -50,7 +49,7 @@ jobs:
|
|||||||
- name: Install WiX Toolset
|
- name: Install WiX Toolset
|
||||||
run: |
|
run: |
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force
|
Set-ExecutionPolicy Bypass -Scope Process -Force
|
||||||
choco install wixtoolset --no-progress
|
choco install wixtoolset -y --no-progress
|
||||||
|
|
||||||
- name: Build MSI Installer
|
- name: Build MSI Installer
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user