From 01d2a941362db698fe0477a5115f34a4f185e263 Mon Sep 17 00:00:00 2001 From: charburgx Date: Thu, 19 Sep 2024 02:44:02 -0700 Subject: [PATCH] chore: install az cli on every os --- .github/workflows/publish.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a079878..a71a9d6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -120,6 +120,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Set up Homebrew + if: matrix.osname == 'macos' + id: set-up-homebrew + uses: Homebrew/actions/setup-homebrew@master + - name: Download artifact uses: actions/download-artifact@v4 with: @@ -140,7 +145,19 @@ jobs: - name: Smoke test localsandbox run: ./localsandbox${{ (matrix.osname == 'win' && '.exe') || '' }} --version - - uses: pietrobolcato/install-azure-cli-action@main + - name: Install az cli (macos) + if: matrix.osname == 'macos' + run: brew update && brew install azure-cli + + - name: Install az cli (linux) + if: matrix.osname == 'linux' + run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash + + - name: Install az cli (windows) + uses: crazy-max/ghaction-chocolatey@v3 + if: matrix.osname == 'win' + with: + args: install azure-cli - name: Test az cli run: az --version