Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed May 21, 2024
1 parent 687259f commit da6094c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
21 changes: 21 additions & 0 deletions samples/greengrass/ipc/ci_run_ipc_cfg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"language": "CPP",
"runnable_file": "greengrass-ipc",
"runnable_region": "us-east-1",
"runnable_main_class": "",
"arguments": [
{
"name": "--topic",
"data": "test/gg-ipc-topic"
},
{
"name": "--message",
"data": "hello"
},
{
"name": "--is_ci",
"data": "true"
}

]
}
2 changes: 2 additions & 0 deletions samples/greengrass/ipc/copy_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cp ../../../build/samples/greengrass/ipc/greengrass-ipc .
cp ../../../utils/run_in_ci.py .
2 changes: 1 addition & 1 deletion samples/greengrass/ipc/gdk-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "NEXT_PATCH",
"build": {
"build_system": "custom",
"custom_build_command": ["cp", "../../../build/samples/greengrass/ipc/greengrass-ipc", "."]
"custom_build_command": ["bash", "copy_files.sh"]
},
"publish": {
"bucket": "<PLACEHOLDER_BUCKET>",
Expand Down
4 changes: 3 additions & 1 deletion samples/greengrass/ipc/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ Manifests:
Permission:
Read: ALL
Execute: ALL
- URI: "file:run_in_ci.py"
- URI: "file:ci_run_ipc_cfg.json"
Lifecycle:
Run: |
echo "GG core:" {iot:thingName}
python3 ../../../utils/run_in_ci.py --runnable_dir {artifacts:path} --file ci_run_ipc_cfg.json
python3 {artifacts:path}/run_in_ci.py --runnable_dir {artifacts:path} --file {artifacts:path}/ci_run_ipc_cfg.json

0 comments on commit da6094c

Please sign in to comment.