Skip to content

Commit 2a94e89

Browse files
committed
run SSM commands with Bash
1 parent 7017b38 commit 2a94e89

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/run-simulators.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ jobs:
113113
set -euo pipefail
114114
115115
# Build the remote shell script as a JSON array for AWS-RunShellScript.
116+
# AWS documents this pattern for running Bash scripts through Run Command.
116117
commands=$(jq -Rs -c 'split("\n") | if .[-1] == "" then .[:-1] else . end' <<EOF
118+
#!/bin/bash
117119
set -euo pipefail
118120
cd /home/ubuntu/actions/
119121
rm -rf Scenic
@@ -189,6 +191,7 @@ jobs:
189191
190192
# Run the GPU driver check remotely through SSM.
191193
commands=$(jq -Rs -c 'split("\n") | if .[-1] == "" then .[:-1] else . end' <<'EOF'
194+
#!/bin/bash
192195
set -euo pipefail
193196
output=$(nvidia-smi)
194197
echo "$output"
@@ -265,6 +268,7 @@ jobs:
265268
266269
# Run CARLA tests once for each installed CARLA version on the instance.
267270
commands=$(jq -Rs -c 'split("\n") | if .[-1] == "" then .[:-1] else . end' <<'EOF'
271+
#!/bin/bash
268272
set -euo pipefail
269273
cd /home/ubuntu/actions/Scenic
270274
source venv/bin/activate
@@ -337,6 +341,7 @@ jobs:
337341
338342
# Run Webots tests on a virtual display because Webots needs graphical support.
339343
commands=$(jq -Rs -c 'split("\n") | if .[-1] == "" then .[:-1] else . end' <<'EOF'
344+
#!/bin/bash
340345
set -euo pipefail
341346
342347
Xvfb :99 -screen 0 1024x768x16 &
@@ -453,4 +458,3 @@ jobs:
453458
# Delete the temporary volume so repeated workflow runs do not leave extra storage behind.
454459
aws ec2 delete-volume --volume-id "$VOLUME_ID"
455460
echo "Volume $VOLUME_ID deleted."
456-

0 commit comments

Comments
 (0)