camera: try to defer init of video objects #470
Workflow file for this run
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
| # Copyright (c) Arduino s.r.l. and/or its affiliated companies | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Scancode | |
| on: [pull_request] | |
| jobs: | |
| verify-licenses: | |
| runs-on: ubuntu-latest | |
| name: Scan code for licenses | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Extract new files | |
| run: | | |
| mkdir scancode-inputs | |
| git fetch origin $GITHUB_BASE_REF | |
| # copy all new files to a separate directory for scanning | |
| for NEW_FILE in $(git diff --name-only --diff-filter=A --ignore-submodules origin/$GITHUB_BASE_REF..HEAD) ; do | |
| TARGET_FILE=${NEW_FILE#.} # remove leading dot if present | |
| mkdir -p $(dirname "scancode-inputs/$TARGET_FILE") | |
| cp "$NEW_FILE" "scancode-inputs/$TARGET_FILE" | |
| echo 'NEW_FILES_FOUND=true' >> $GITHUB_ENV | |
| done | |
| - name: Scan the code | |
| id: scancode | |
| uses: aboutcode-org/scancode-action@v0.1 | |
| if: env.NEW_FILES_FOUND == 'true' | |
| with: | |
| check-compliance: true | |
| output-formats: json xlsx | |
| - name: Get the report | |
| uses: actions/download-artifact@v8 | |
| if: env.NEW_FILES_FOUND == 'true' | |
| with: | |
| name: scancode-outputs-scancode-action | |
| - name: Process the report | |
| if: env.NEW_FILES_FOUND == 'true' | |
| run: | | |
| # the following will error on missing licenses or compliance issues | |
| extra/ci_license_checks.sh scancode-inputs/ results-*.json |