Skip to content

Commit

Permalink
[android] install Chocolatey if not installed
Browse files Browse the repository at this point in the history
Installs the Chocolatey package manager if it is not already installed
on the system. This is currently needed for the Azure runners but not
for GitHub runners, where Chocolatey is pre-installed.
  • Loading branch information
andrurogerz committed Aug 19, 2024
1 parent d1e0afb commit 8307e7a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/swift-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,12 @@ jobs:
arch: amd64

- name: Install Flex and Bison Tools
run: choco install winflexbison3
run: |
if (-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")) {
Invoke-Expression ((New-Object net.webclient).DownloadString("https://community.chocolatey.org/install.ps1"))
}
choco feature enable -n allowGlobalConfirmation
choco install winflexbison3
- name: Configure RegsGen2
run: |
Expand Down Expand Up @@ -387,7 +392,12 @@ jobs:
arch: ${{ matrix.arch }}

- name: Install Flex and Bison Tools
run: choco install winflexbison3
run: |
if (-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")) {
Invoke-Expression ((New-Object net.webclient).DownloadString("https://community.chocolatey.org/install.ps1"))
}
choco feature enable -n allowGlobalConfirmation
choco install winflexbison3
- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 8307e7a

Please sign in to comment.