Repository navigation
fix: prefer dedicated YouTube live HLS #935
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
| name: CI | |
| on: | |
| push: | |
| branches: ["dev"] | |
| pull_request: | |
| branches: ["dev", "main"] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: [self-hosted, Linux, X64, ci-stack] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Isolate Gradle user home | |
| run: echo "GRADLE_USER_HOME=${RUNNER_TEMP}/gradle-user-home" >> "$GITHUB_ENV" | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: "25" | |
| distribution: temurin | |
| - uses: gradle/actions/setup-gradle@v6 | |
| - name: Detect affected Gradle modules | |
| id: affected | |
| run: bash .github/scripts/ci-affected-tasks.sh | |
| - name: Build affected modules | |
| env: | |
| TASKS: ${{ steps.affected.outputs.tasks }} | |
| run: | | |
| if [[ -z "$TASKS" ]]; then | |
| echo "No Gradle compilation or tests are required." | |
| exit 0 | |
| fi | |
| readarray -t task_args <<<"$TASKS" | |
| printf 'Running:\n%s\n' "$TASKS" | |
| ./gradlew "${task_args[@]}" --parallel --max-workers=32 |