Skip to content

Commit bc5d5db

Browse files
committed
install cli base on platform
1 parent 862fe61 commit bc5d5db

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,26 @@ 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'
910
shell: bash
1011
run: |
1112
sudo snap install aws-cli --classic
13+
14+
- name: Install AWS CLI (macOS)
15+
if: matrix.os == 'macos-latest'
16+
shell: bash
17+
run: |
18+
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
19+
sudo installer -pkg AWSCLIV2.pkg -target /
20+
21+
- name: Install AWS CLI (Windows)
22+
if: matrix.os == 'windows-latest'
23+
shell: powershell
24+
run: |
25+
Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -OutFile "AWSCLIV2.msi"
26+
Start-Process msiexec.exe -Wait -ArgumentList '/I AWSCLIV2.msi /quiet'
27+
1228
- name: Set up kat
1329
shell: bash
1430
run: |

0 commit comments

Comments
 (0)