Skip to content

Commit 1f604f1

Browse files
committed
cross-platform CLI installation
1 parent 75c6de3 commit 1f604f1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/actions/setup-kat/action.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,23 @@ description: >
55
runs:
66
using: composite
77
steps:
8-
- name: Install AWS CLI
8+
- name: Install AWS CLI (ubuntu)
9+
if: matrix.os == 'ubuntu-latest' || !matrix.os
910
shell: bash
1011
run: |
1112
sudo snap install aws-cli --classic
13+
- name: Install AWS CLI (macOS)
14+
if: matrix.os == 'macos-latest'
15+
shell: bash
16+
run: |
17+
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
18+
sudo installer -pkg AWSCLIV2.pkg -target /
19+
- name: Install AWS CLI (Windows)
20+
if: matrix.os == 'windows-latest'
21+
shell: powershell
22+
run: |
23+
Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -OutFile "AWSCLIV2.msi"
24+
Start-Process msiexec.exe -Wait -ArgumentList '/I AWSCLIV2.msi /quiet'
1225
- name: Set up kat
1326
shell: bash
1427
run: |

0 commit comments

Comments
 (0)