-
Notifications
You must be signed in to change notification settings - Fork 21
Move all examples to cpp-example-collection #83
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
Merged
stephen-derosa
merged 16 commits into
livekit:main
from
stephen-derosa:sderosa/examples-migration
Apr 10, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
155f353
examples -> cpp-examples-collection, CI to build collection in docker
stephen-derosa 2a871de
copy bridge for examples
stephen-derosa 453b2d8
cpp-example-collection fix for mac x64
stephen-derosa d46bc43
update cppm example commit
stephen-derosa 7384f8b
fix rebase issue
stephen-derosa 073cec5
rm duplicate install of sdk
stephen-derosa ede3689
Update cmake/cpp-example-collection.cmake
stephen-derosa ef499e3
include(GNUInstallDirs)
stephen-derosa 0526982
pin check and license check
stephen-derosa 88f5a3b
license check fix
stephen-derosa 101eb64
licenses
stephen-derosa b906712
cpp-example-collection hash
stephen-derosa da34b27
more robust cpp-example-collection hash
stephen-derosa d2f5eb3
fix hashes
stephen-derosa 9544b8f
copyright
stephen-derosa 0b9db98
toolchain stable
stephen-derosa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: License Check | ||
| on: | ||
| workflow_call: {} | ||
| workflow_dispatch: {} | ||
|
|
||
| jobs: | ||
| license-check: | ||
| name: License Check | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | ||
| - name: Check License Headers | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
|
|
||
| search_dirs=() | ||
| for dir in src include bridge cpp-example-collection; do | ||
| if [[ -d "$dir" ]]; then | ||
| search_dirs+=("$dir") | ||
| fi | ||
| done | ||
|
|
||
| if [[ ${#search_dirs[@]} -eq 0 ]]; then | ||
| echo "No source directories found to validate." | ||
| exit 1 | ||
| fi | ||
|
|
||
| mapfile -t files < <(find "${search_dirs[@]}" -type f \( -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) | LC_ALL=C sort) | ||
| if [[ ${#files[@]} -eq 0 ]]; then | ||
| echo "No source files found to validate." | ||
| exit 1 | ||
| fi | ||
|
|
||
| failed=0 | ||
| for file in "${files[@]}"; do | ||
| if ! grep -Eq 'Copyright [0-9]{4}(-[0-9]{4})? LiveKit(, Inc\.)?$' "$file"; then | ||
| echo "Missing or unexpected copyright header in $file" | ||
| failed=1 | ||
| fi | ||
| if ! grep -Fq 'Licensed under the Apache License, Version 2.0' "$file"; then | ||
| echo "Missing Apache 2.0 header in $file" | ||
| failed=1 | ||
| fi | ||
| done | ||
|
|
||
| exit "$failed" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.