@@ -38,6 +38,8 @@ permissions:
3838
3939env :
4040 CARGO_TERM_COLOR : always
41+ # Pinned commit for cpp-example-collection smoke build (https://github.com/livekit-examples/cpp-example-collection)
42+ CPP_EXAMPLE_COLLECTION_REF : f231c0c75028d1dcf13edcecd369d030d2c7c8d4
4143 # vcpkg binary caching for Windows
4244 VCPKG_DEFAULT_TRIPLET : x64-windows-static-md
4345 VCPKG_DEFAULT_HOST_TRIPLET : x64-windows-static-md
@@ -415,11 +417,12 @@ jobs:
415417
416418 - name : Build cpp-example-collection against installed SDK
417419 run : |
418- docker run --rm livekit-cpp-sdk:${{ github.sha }} bash -lc '
420+ docker run -e CPP_EX_REF="${{ env.CPP_EXAMPLE_COLLECTION_REF }}" - -rm livekit-cpp-sdk:${{ github.sha }} bash -lc '
419421 set -euxo pipefail
420422 git clone https://github.com/livekit-examples/cpp-example-collection.git /tmp/cpp-example-collection
421423 cd /tmp/cpp-example-collection
422- git checkout f231c0c75028d1dcf13edcecd369d030d2c7c8d4
424+ git fetch --depth 1 origin "$CPP_EX_REF"
425+ git checkout "$CPP_EX_REF"
423426 cmake -S . -B build -DLIVEKIT_LOCAL_SDK_DIR=/opt/livekit-sdk
424427 cmake --build build --parallel
425428 '
@@ -440,11 +443,12 @@ jobs:
440443
441444 - name : Build cpp-example-collection against installed SDK
442445 run : |
443- docker run --rm livekit-cpp-sdk-x64:${{ github.sha }} bash -lc '
446+ docker run -e CPP_EX_REF="${{ env.CPP_EXAMPLE_COLLECTION_REF }}" - -rm livekit-cpp-sdk-x64:${{ github.sha }} bash -lc '
444447 set -euxo pipefail
445448 git clone https://github.com/livekit-examples/cpp-example-collection.git /tmp/cpp-example-collection
446449 cd /tmp/cpp-example-collection
447- git checkout f231c0c75028d1dcf13edcecd369d030d2c7c8d4
450+ git fetch --depth 1 origin "$CPP_EX_REF"
451+ git checkout "$CPP_EX_REF"
448452 cmake -S . -B build -DLIVEKIT_LOCAL_SDK_DIR=/opt/livekit-sdk
449453 cmake --build build --parallel
450454 '
0 commit comments