@@ -325,7 +325,12 @@ jobs:
325
325
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
326
326
327
327
osx :
328
- runs-on : macos-latest
328
+ runs-on : ${{ matrix.runner }}
329
+ strategy :
330
+ matrix :
331
+ runner :
332
+ - macos-13
333
+ - macos-latest
329
334
permissions :
330
335
id-token : write # This is required for requesting the JWT
331
336
security-events : write # This is required for pkcs12 sample to sign the key
@@ -337,6 +342,8 @@ jobs:
337
342
./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream
338
343
- name : Running samples in CI setup
339
344
run : |
345
+ python3 -m venv .venv
346
+ source .venv/bin/activate
340
347
python3 -m pip install boto3
341
348
- name : configure AWS credentials (PubSub)
342
349
uses : aws-actions/configure-aws-credentials@v2
@@ -345,6 +352,7 @@ jobs:
345
352
aws-region : ${{ env.AWS_DEFAULT_REGION }}
346
353
- name : run MQTT3 PubSub sample
347
354
run : |
355
+ source .venv/bin/activate
348
356
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_pubsub_cfg.json
349
357
# - name: run PKCS12 sample
350
358
# run: |
@@ -370,6 +378,7 @@ jobs:
370
378
aws-region : ${{ env.AWS_DEFAULT_REGION }}
371
379
- name : run MQTT5 PubSub sample
372
380
run : |
381
+ source .venv/bin/activate
373
382
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_pubsub_cfg.json
374
383
- name : configure AWS credentials (Device Advisor)
375
384
uses : aws-actions/configure-aws-credentials@v2
@@ -378,6 +387,7 @@ jobs:
378
387
aws-region : ${{ env.AWS_DEFAULT_REGION }}
379
388
- name : run DeviceAdvisor
380
389
run : |
390
+ source .venv/bin/activate
381
391
cd ./aws-iot-device-sdk-cpp-v2
382
392
python3 ./deviceadvisor/script/DATestRun.py
383
393
# Not strictly needed, but allows us to run Device Advisor and PubSub on Linux without needing to run all samples
0 commit comments