1name: Build with Android MediaCodec 2on: 3 push: 4 branches: 5 - main 6 pull_request: 7 8permissions: 9 contents: read 10 11# Cancel the workflow if a new one is triggered from the same PR, branch, or tag, except on main. 12concurrency: 13 group: ${{ github.workflow }}-${{ github.ref }} 14 cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} 15 16jobs: 17 no-default-features: 18 name: "Build with Android MediaCodec" 19 runs-on: ubuntu-latest 20 strategy: 21 fail-fast: false 22 23 steps: 24 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 25 26 - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 27 with: 28 toolchain: stable 29 target: aarch64-linux-android 30 31 - name: Download and Setup the Android NDK 32 uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0 33 id: setup-ndk 34 with: 35 ndk-version: r25c 36 add-to-path: false 37 38 - name: Build the library with Android MediaCodec 39 run: cargo check --no-default-features --features android_mediacodec --target aarch64-linux-android 40 env: 41 ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }} 42