|
36 | 36 | CI_SECURE_TUNNEL: arn:aws:iam::180635532705:role/CI_SecureTunnel_Role
|
37 | 37 | CI_X509_ROLE: arn:aws:iam::180635532705:role/CI_X509_Role
|
38 | 38 | CI_MQTT5_ROLE: arn:aws:iam::180635532705:role/CI_MQTT5_Role
|
39 |
| - CI_GREENGRASS_ROLE: arn:aws:iam::180635532705:role/CI_Greengrass_Role |
40 |
| - CI_GREENGRASS_INSTALLER_ROLE: arn:aws:iam::180635532705:role/CI_GreengrassInstaller_Role |
41 | 39 | CI_JOBS_SERVICE_CLIENT_ROLE: arn:aws:iam::180635532705:role/CI_JobsServiceClient_Role
|
42 | 40 | CI_SHADOW_SERVICE_CLIENT_ROLE: arn:aws:iam::180635532705:role/CI_ShadowServiceClient_Role
|
43 | 41 |
|
@@ -644,66 +642,6 @@ jobs:
|
644 | 642 | run: |
|
645 | 643 | python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_x509_connect_cfg.json
|
646 | 644 |
|
647 |
| - # Runs the Greengrass samples |
648 |
| - linux-greengrass-tests: |
649 |
| - runs-on: ubuntu-latest |
650 |
| - permissions: |
651 |
| - id-token: write # This is required for requesting the JWT |
652 |
| - steps: |
653 |
| - - name: Setup C++ |
654 |
| - run: | |
655 |
| - sudo apt-get -qq update -y |
656 |
| - sudo apt-get -qq install -y build-essential |
657 |
| - sudo apt install cmake |
658 |
| - gcc --version |
659 |
| - cmake --version |
660 |
| - - name: Build ${{ env.PACKAGE_NAME }} + consumers |
661 |
| - run: | |
662 |
| - echo "Downloading source" |
663 |
| - git clone --recursive https://github.com/aws/aws-iot-device-sdk-cpp-v2.git --branch ${{ env.HEAD_REF || github.ref_name }} |
664 |
| - echo "Running builder" |
665 |
| - python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" |
666 |
| - python builder.pyz build -p ${{ env.PACKAGE_NAME }} --variant build_gg_samples_only |
667 |
| - - name: Install Greengrass Development Kit |
668 |
| - run: | |
669 |
| - python3 -m pip install awsiotsdk |
670 |
| - python3 -m pip install -U git+https://github.com/aws-greengrass/[email protected] |
671 |
| - - name: Configure AWS credentials (Greengrass) |
672 |
| - uses: aws-actions/configure-aws-credentials@v2 |
673 |
| - with: |
674 |
| - role-to-assume: ${{ env.CI_GREENGRASS_INSTALLER_ROLE }} |
675 |
| - aws-region: ${{ env.AWS_DEFAULT_REGION }} |
676 |
| - - name: Build and run Greengrass basic discovery sample |
677 |
| - working-directory: ./aws-iot-device-sdk-cpp-v2/tests/greengrass/basic_discovery |
678 |
| - run: | |
679 |
| - gdk component build |
680 |
| - gdk test-e2e build |
681 |
| - gdk test-e2e run |
682 |
| - - name: Show logs |
683 |
| - working-directory: ./aws-iot-device-sdk-cpp-v2/tests/greengrass/basic_discovery |
684 |
| - # Print logs unconditionally to provide more details on Greengrass run even if the test failed. |
685 |
| - if: always() |
686 |
| - run: | |
687 |
| - echo "=== greengrass.log" |
688 |
| - cat testResults/gg*/greengrass.log |
689 |
| - echo "=== software.amazon.awssdk.sdk-gg-test-discovery.log" |
690 |
| - cat testResults/gg*/software.amazon.awssdk.sdk-gg-test-discovery.log |
691 |
| - - name: Build and run Greengrass IPC sample |
692 |
| - working-directory: ./aws-iot-device-sdk-cpp-v2/tests/greengrass/ipc |
693 |
| - run: | |
694 |
| - gdk component build |
695 |
| - gdk test-e2e build |
696 |
| - gdk test-e2e run |
697 |
| - - name: Show logs |
698 |
| - working-directory: ./aws-iot-device-sdk-cpp-v2/tests/greengrass/ipc |
699 |
| - # Print logs unconditionally to provide more details on Greengrass run even if the test failed. |
700 |
| - if: always() |
701 |
| - run: | |
702 |
| - echo "=== greengrass.log" |
703 |
| - cat testResults/gg*/greengrass.log |
704 |
| - echo "=== software.amazon.awssdk.sdk-gg-ipc.log" |
705 |
| - cat testResults/gg*/software.amazon.awssdk.sdk-gg-ipc.log |
706 |
| -
|
707 | 645 | # check that docs can still build
|
708 | 646 | check-docs:
|
709 | 647 | runs-on: ubuntu-20.04 # latest
|
|
0 commit comments