Skip to content

Commit cea8048

Browse files
authored
misc: cross platform setup kat (#143)
* cross-platform CLI installation * use runner.os
1 parent 75c6de3 commit cea8048

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 (Linux)
9+
if: runner.os == 'Linux'
910
shell: bash
1011
run: |
1112
sudo snap install aws-cli --classic
13+
- name: Install AWS CLI (macOS)
14+
if: runner.os == 'macOS'
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: runner.os == 'Windows'
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)