chore: add custom video source and generator to the web example #193
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "**.cpp" | |
| - "**.h" | |
| - "**.java" | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| WEBRTC_CACHE_BRANCH: 7204 | |
| WEBRTC_CHECKOUT_FOLDER: webrtc | |
| WEBRTC_INSTALL_FOLDER: webrtc/build | |
| jobs: | |
| build-windows: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| - name: windows_x86_64 | |
| runs-on: windows-2022 | |
| java: [17] | |
| runs-on: ${{ matrix.platform.runs-on }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - id: prepare | |
| name: Prepare build | |
| uses: ./.github/actions/prepare-windows | |
| - id: maven-build | |
| name: Maven build | |
| uses: ./.github/actions/build | |
| with: | |
| java-version: ${{ matrix.java }} | |
| platform-name: ${{ matrix.platform.name }} | |
| maven-username: ${{ secrets.MAVEN_USERNAME }} | |
| maven-password: ${{ secrets.MAVEN_TOKEN }} | |
| build-linux: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| - name: linux_arm | |
| runs-on: ubuntu-22.04 | |
| - name: linux_arm64 | |
| runs-on: ubuntu-22.04 | |
| - name: linux_x86-64 | |
| runs-on: ubuntu-22.04 | |
| java: [17] | |
| runs-on: ${{ matrix.platform.runs-on }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - id: prepare | |
| name: Prepare build | |
| uses: ./.github/actions/prepare-linux | |
| - id: maven-build | |
| name: Maven build | |
| uses: ./.github/actions/build | |
| with: | |
| java-version: ${{ matrix.java }} | |
| platform-name: ${{ matrix.platform.name }} | |
| maven-username: ${{ secrets.MAVEN_USERNAME }} | |
| maven-password: ${{ secrets.MAVEN_TOKEN }} | |
| build-macos: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| - name: macos_x86-64 | |
| runs-on: macos-14 | |
| - name: macos_arm64 | |
| runs-on: macos-14 | |
| java: [17] | |
| runs-on: ${{ matrix.platform.runs-on }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - id: prepare-build | |
| name: Prepare build | |
| uses: ./.github/actions/prepare-macos | |
| - id: maven-build-arm64 | |
| name: Maven build - Apple Silicon | |
| if: matrix.platform.name == 'macos_arm64' | |
| uses: ./.github/actions/build | |
| with: | |
| java-version: ${{ matrix.java }} | |
| platform-name: ${{ matrix.platform.name }} | |
| maven-username: ${{ secrets.MAVEN_USERNAME }} | |
| maven-password: ${{ secrets.MAVEN_TOKEN }} | |
| - id: maven-build-x86_64 | |
| name: Maven build - Intel | |
| if: matrix.platform.name == 'macos_x86-64' | |
| uses: ./.github/actions/build-macos-x86_64 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| platform-name: ${{ matrix.platform.name }} | |
| maven-username: ${{ secrets.MAVEN_USERNAME }} | |
| maven-password: ${{ secrets.MAVEN_TOKEN }} |