Skip to content

Commit

Permalink
chore: install az cli on every os
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsdev committed Sep 19, 2024
1 parent 60e4d4c commit 01d2a94
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 01d2a94

Please sign in to comment.