diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 4496d8a..390e79f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -18,20 +18,19 @@ jobs: - name: Install Rust run: | - # Bypass execution policy for the current session Set-ExecutionPolicy Bypass -Scope Process -Force $installDir = "$env:USERPROFILE\.cargo\bin" 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" .\rustup-init.exe -y --default-toolchain stable } - # Append to GITHUB_PATH for subsequent steps Add-Content -Path $env:GITHUB_PATH -Value $installDir - name: Install LLVM run: | 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 run: | @@ -50,7 +49,7 @@ jobs: - name: Install WiX Toolset run: | Set-ExecutionPolicy Bypass -Scope Process -Force - choco install wixtoolset --no-progress + choco install wixtoolset -y --no-progress - name: Build MSI Installer run: |