Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enums in jobs #618

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,51 @@ jobs:
cd ${{ env.CI_FOLDER }}
echo "Starting to run AppVerifier with cycle pub-sub sample"
python ${{ env.CI_UTILS_FOLDER }}/appverifier_launch_sample.py --sample_file ".\aws-iot-device-sdk-cpp-v2\build\samples\pub_sub\cycle_pub_sub\RelWithDebInfo\cycle-pub-sub.exe" --sample_secret_endpoint 'ci/endpoint' --sample_secret_certificate 'ci/CyclePubSub/cert' --sample_secret_private_key 'ci/CyclePubSub/key'
windows-shared-lib:
runs-on: windows-latest
permissions:
id-token: write # This is required for requesting the JWT
steps:
- name: Build ${{ env.PACKAGE_NAME }} + consumers
run: |
md ${{ env.CI_FOLDER }}
cd ${{ env.CI_FOLDER }}
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder.pyz')"
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
- name: Running samples in CI setup
run: |
python -m pip install boto3
- name: configure AWS credentials (PubSub)
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ env.CI_PUBSUB_ROLE }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: run MQTT3 PubSub sample
run: |
cd ${{ env.CI_FOLDER }}
python ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_pubsub_windows_cfg.json
- name: run Windows Certificate Connect sample
run: |
cd ${{ env.CI_FOLDER }}
python ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_windows_cert_connect_cfg.json
- name: configure AWS credentials (MQTT5)
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: run MQTT5 PubSub sample
run: |
cd ${{ env.CI_FOLDER }}
python ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_pubsub_windows_cfg.json
- name: configure AWS credentials (Device Advisor)
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ env.CI_DEVICE_ADVISOR }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: run DeviceAdvisor
run: |
cd ${{ env.CI_FOLDER }}/aws-iot-device-sdk-cpp-v2
python ./deviceadvisor/script/DATestRun.py
osx:
runs-on: macos-latest
permissions:
Expand Down
4 changes: 2 additions & 2 deletions jobs/include/aws/iotjobs/JobStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ namespace Aws

namespace JobStatusMarshaller
{
const char *AWS_IOTJOBS_API ToString(JobStatus val);
JobStatus AWS_IOTJOBS_API FromString(const Aws::Crt::String &val);
AWS_IOTJOBS_API const char *ToString(JobStatus val);
AWS_IOTJOBS_API JobStatus FromString(const Aws::Crt::String &val);
} // namespace JobStatusMarshaller
} // namespace Iotjobs
} // namespace Aws
4 changes: 2 additions & 2 deletions jobs/include/aws/iotjobs/RejectedErrorCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ namespace Aws

namespace RejectedErrorCodeMarshaller
{
const char *AWS_IOTJOBS_API ToString(RejectedErrorCode val);
RejectedErrorCode AWS_IOTJOBS_API FromString(const Aws::Crt::String &val);
AWS_IOTJOBS_API const char *ToString(RejectedErrorCode val);
AWS_IOTJOBS_API RejectedErrorCode FromString(const Aws::Crt::String &val);
} // namespace RejectedErrorCodeMarshaller
} // namespace Iotjobs
} // namespace Aws
Loading