Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-load Azure Images with Chocolatey package manager #205

Open
andrurogerz opened this issue Aug 21, 2024 · 0 comments
Open

Pre-load Azure Images with Chocolatey package manager #205

andrurogerz opened this issue Aug 21, 2024 · 0 comments

Comments

@andrurogerz
Copy link
Collaborator

In order to build the toolchain on Azure VMs we have to install the Chocolatey package manger for Windows:

steps:
  - name: Install Chocolatey
    run: |
        if (-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")) {
          Invoke-Expression ((New-Object net.webclient).DownloadString("${{ inputs.install-script }}"))
          choco feature enable -n allowGlobalConfirmation
          # Propagate the updated path to subsequent steps in the current job.
          echo "$env:ChocolateyInstall\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
        }

It would be faster if Chocolatey were pre-installed like it is on the GitHub Windows runner images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant