From d68ad4cc99d749953f353da843cd13b47dc00d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 15:52:27 -0700 Subject: [PATCH 01/13] Update ffi-builds.yml --- .github/workflows/ffi-builds.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index c44998dbe..c2e3e17a9 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -157,5 +157,25 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: ${{ matrix.name }}.zip + name: ffi-builds path: ${{ matrix.name }}.zip + + + release: + name: Release to GH (Draft) + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/ffi-v') + steps: + - uses: actions/checkout@v3 + + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + name: ffi-builds + path: ${{ github.workspace }}/ffi-builds + + - name: Create draft release + run: | + export VERSION="${REF_NAME#ffi-}" + gh release create ${{ github.ref_name }} --draft --title "ffi v$VERSION" + gh release upload ${{ github.ref_name }} ${{ github.workspace }}/ffi-builds/* \ No newline at end of file From 8831521185421a23836f44ffded855219137a7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 15:54:54 -0700 Subject: [PATCH 02/13] Update ffi-builds.yml --- .github/workflows/ffi-builds.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index c2e3e17a9..ffc06ace1 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -16,6 +16,8 @@ name: FFI on: push: branches: ["main"] + tags: + - "ffi-v*" workflow_dispatch: env: From 26a43d441b2cfc3f1277811c34eb6ad6006cff4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 15:56:55 -0700 Subject: [PATCH 03/13] need --- .github/workflows/ffi-builds.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index ffc06ace1..45577e4dc 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -166,6 +166,7 @@ jobs: release: name: Release to GH (Draft) runs-on: ubuntu-latest + needs: build if: startsWith(github.ref, 'refs/tags/ffi-v') steps: - uses: actions/checkout@v3 From e61db059d3e726d4d704d3aa572f295920fa3e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 15:58:34 -0700 Subject: [PATCH 04/13] Update ffi-builds.yml --- .github/workflows/ffi-builds.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index 45577e4dc..1db9d24df 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -70,12 +70,12 @@ jobs: dylib: liblivekit_ffi.so target: x86_64-unknown-linux-gnu name: ffi-linux-x86_64 - - os: buildjet-4vcpu-ubuntu-2204-arm - platform: linux - build_image: quay.io/pypa/manylinux_2_28_aarch64 - dylib: liblivekit_ffi.so - target: aarch64-unknown-linux-gnu - name: ffi-linux-arm64 + # - os: buildjet-4vcpu-ubuntu-2204-arm + # platform: linux + # build_image: quay.io/pypa/manylinux_2_28_aarch64 + # dylib: liblivekit_ffi.so + # target: aarch64-unknown-linux-gnu + # name: ffi-linux-arm64 - os: ubuntu-latest platform: android dylib: liblivekit_ffi.so From 323d65a0975ad0c1ad14ca0926475e442502b413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 16:10:02 -0700 Subject: [PATCH 05/13] wip --- .github/workflows/ffi-builds.yml | 84 ++++++++++++++++---------------- 1 file changed, 43 insertions(+), 41 deletions(-) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index 1db9d24df..b2b2476f6 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -29,47 +29,47 @@ jobs: fail-fast: false matrix: include: - - os: windows-latest - platform: windows - dylib: livekit_ffi.dll - target: x86_64-pc-windows-msvc - name: ffi-windows-x86_64 - - os: windows-latest - platform: windows - dylib: livekit_ffi.dll - buildargs: --no-default-features --features "native-tls" # ring 0.16 is incompatible with win aarch64 - target: aarch64-pc-windows-msvc - name: ffi-windows-arm64 - - os: macos-latest - platform: macos - dylib: liblivekit_ffi.dylib - target: x86_64-apple-darwin - macosx_deployment_target: "10.15" - name: ffi-macos-x86_64 - - os: macos-latest - platform: macos - dylib: liblivekit_ffi.dylib - target: aarch64-apple-darwin - macosx_deployment_target: "11.0" # aarch64 requires 11 - name: ffi-macos-arm64 - - os: macos-latest - platform: ios - dylib: liblivekit_ffi.dylib - target: aarch64-apple-ios - iphoneos_deployment_target: "13.0" - name: ffi-ios-arm64 - - os: macos-latest - platform: ios - dylib: liblivekit_ffi.dylib - target: aarch64-apple-ios-sim - iphoneos_deployment_target: "13.0" - name: ffi-ios-sim-arm64 - - os: ubuntu-latest - platform: linux - build_image: quay.io/pypa/manylinux_2_28_x86_64 - dylib: liblivekit_ffi.so - target: x86_64-unknown-linux-gnu - name: ffi-linux-x86_64 + # - os: windows-latest + # platform: windows + # dylib: livekit_ffi.dll + # target: x86_64-pc-windows-msvc + # name: ffi-windows-x86_64 + # - os: windows-latest + # platform: windows + # dylib: livekit_ffi.dll + # buildargs: --no-default-features --features "native-tls" # ring 0.16 is incompatible with win aarch64 + # target: aarch64-pc-windows-msvc + # name: ffi-windows-arm64 + # - os: macos-latest + # platform: macos + # dylib: liblivekit_ffi.dylib + # target: x86_64-apple-darwin + # macosx_deployment_target: "10.15" + # name: ffi-macos-x86_64 + # - os: macos-latest + # platform: macos + # dylib: liblivekit_ffi.dylib + # target: aarch64-apple-darwin + # macosx_deployment_target: "11.0" # aarch64 requires 11 + # name: ffi-macos-arm64 + # - os: macos-latest + # platform: ios + # dylib: liblivekit_ffi.dylib + # target: aarch64-apple-ios + # iphoneos_deployment_target: "13.0" + # name: ffi-ios-arm64 + # - os: macos-latest + # platform: ios + # dylib: liblivekit_ffi.dylib + # target: aarch64-apple-ios-sim + # iphoneos_deployment_target: "13.0" + # name: ffi-ios-sim-arm64 + # - os: ubuntu-latest + # platform: linux + # build_image: quay.io/pypa/manylinux_2_28_x86_64 + # dylib: liblivekit_ffi.so + # target: x86_64-unknown-linux-gnu + # name: ffi-linux-x86_64 # - os: buildjet-4vcpu-ubuntu-2204-arm # platform: linux # build_image: quay.io/pypa/manylinux_2_28_aarch64 @@ -168,6 +168,8 @@ jobs: runs-on: ubuntu-latest needs: build if: startsWith(github.ref, 'refs/tags/ffi-v') + env: + GH_TOKEN: ${{ github.token }} steps: - uses: actions/checkout@v3 From f6fbf110767af9c9b34e1cd25517a7147a3f5e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 16:18:51 -0700 Subject: [PATCH 06/13] add contents:write permission --- .github/workflows/ffi-builds.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index b2b2476f6..3316035b8 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -167,6 +167,8 @@ jobs: name: Release to GH (Draft) runs-on: ubuntu-latest needs: build + permissions: + contents: write if: startsWith(github.ref, 'refs/tags/ffi-v') env: GH_TOKEN: ${{ github.token }} From ef59661396f52ce92a596207cb3a25baec02a1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 16:56:12 -0700 Subject: [PATCH 07/13] license & fix file permission attempt --- .github/workflows/ffi-builds.yml | 11 +++++++++-- livekit-ffi/.gitignore | 1 + livekit-ffi/build.rs | 15 +++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 livekit-ffi/.gitignore diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index 3316035b8..7b22547d0 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -132,6 +132,8 @@ jobs: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; \ cd livekit-ffi && cargo build --release --target ${{ matrix.target }} ${{ matrix.buildargs }}" + sudo chown -R $USER:$USER target/${{ matrix.target }}/release/ + # on android use cargo ndk - name: Build (Android) if: ${{ matrix.platform == 'android' }} @@ -140,12 +142,17 @@ jobs: cargo install cargo-ndk cargo ndk --target ${{ matrix.target }} build --release ${{ matrix.buildargs }} + - name: Copy/Build licenses + run: | + cat livekit/WEBRTC_LICENSE.md >> LICENSE + cp LICENSE target/${{ matrix.target }}/release/ + shell: bash + # zip the files - name: Zip artifact (Unix) if: ${{ matrix.os != 'windows-latest' }} - # using sudo because the above container (manylinux) runs as root run: | - sudo cp livekit-ffi/include/livekit_ffi.h target/${{ matrix.target }}/release/ + cp livekit-ffi/include/livekit_ffi.h target/${{ matrix.target }}/release/ cd target/${{ matrix.target }}/release/ zip ${{ github.workspace }}/${{ matrix.name }}.zip ${{ matrix.dylib }} livekit_ffi.h diff --git a/livekit-ffi/.gitignore b/livekit-ffi/.gitignore new file mode 100644 index 000000000..7c18ec7e5 --- /dev/null +++ b/livekit-ffi/.gitignore @@ -0,0 +1 @@ +WEBRTC_LICENSE.md \ No newline at end of file diff --git a/livekit-ffi/build.rs b/livekit-ffi/build.rs index 9db1985bf..91a1fc9fd 100644 --- a/livekit-ffi/build.rs +++ b/livekit-ffi/build.rs @@ -13,13 +13,28 @@ // limitations under the License. use std::env; +use std::path::Path; fn main() { if env::var("DOCS_RS").is_ok() { return; } + webrtc_sys_build::download_webrtc().unwrap(); if env::var("CARGO_CFG_TARGET_OS").unwrap() == "android" { webrtc_sys_build::configure_jni_symbols().unwrap(); } + + { + // Copy the webrtc license to CARGO_MANIFEST_DIR + // (used by the ffi release action) + let webrtc_dir = webrtc_sys_build::webrtc_dir(); + let license = webrtc_dir.join("LICENSE.md"); + let target_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); + + let out_file = Path::new(&target_dir).join("WEBRTC_LICENSE.md"); + println!("cargo:warning=Copying license to {}", out_file.display()); + + std::fs::copy(license, out_file).unwrap(); + } } From dd4b8bf9a7461dd01f77fdeb278139dd705c62aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 17:02:59 -0700 Subject: [PATCH 08/13] fix license path --- .github/workflows/ffi-builds.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index 7b22547d0..c2f889a6e 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -144,7 +144,7 @@ jobs: - name: Copy/Build licenses run: | - cat livekit/WEBRTC_LICENSE.md >> LICENSE + cat livekit-ffi/WEBRTC_LICENSE.md >> LICENSE cp LICENSE target/${{ matrix.target }}/release/ shell: bash From b814610649fbb003387981ee658aa7e833d78c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 17:10:08 -0700 Subject: [PATCH 09/13] forgot to include the license inside the zip lol --- .github/workflows/ffi-builds.yml | 100 ++++++++++++++-------------- .github/workflows/webrtc-builds.yml | 2 +- 2 files changed, 51 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index c2f889a6e..875711104 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -29,53 +29,53 @@ jobs: fail-fast: false matrix: include: - # - os: windows-latest - # platform: windows - # dylib: livekit_ffi.dll - # target: x86_64-pc-windows-msvc - # name: ffi-windows-x86_64 - # - os: windows-latest - # platform: windows - # dylib: livekit_ffi.dll - # buildargs: --no-default-features --features "native-tls" # ring 0.16 is incompatible with win aarch64 - # target: aarch64-pc-windows-msvc - # name: ffi-windows-arm64 - # - os: macos-latest - # platform: macos - # dylib: liblivekit_ffi.dylib - # target: x86_64-apple-darwin - # macosx_deployment_target: "10.15" - # name: ffi-macos-x86_64 - # - os: macos-latest - # platform: macos - # dylib: liblivekit_ffi.dylib - # target: aarch64-apple-darwin - # macosx_deployment_target: "11.0" # aarch64 requires 11 - # name: ffi-macos-arm64 - # - os: macos-latest - # platform: ios - # dylib: liblivekit_ffi.dylib - # target: aarch64-apple-ios - # iphoneos_deployment_target: "13.0" - # name: ffi-ios-arm64 - # - os: macos-latest - # platform: ios - # dylib: liblivekit_ffi.dylib - # target: aarch64-apple-ios-sim - # iphoneos_deployment_target: "13.0" - # name: ffi-ios-sim-arm64 - # - os: ubuntu-latest - # platform: linux - # build_image: quay.io/pypa/manylinux_2_28_x86_64 - # dylib: liblivekit_ffi.so - # target: x86_64-unknown-linux-gnu - # name: ffi-linux-x86_64 - # - os: buildjet-4vcpu-ubuntu-2204-arm - # platform: linux - # build_image: quay.io/pypa/manylinux_2_28_aarch64 - # dylib: liblivekit_ffi.so - # target: aarch64-unknown-linux-gnu - # name: ffi-linux-arm64 + - os: windows-latest + platform: windows + dylib: livekit_ffi.dll + target: x86_64-pc-windows-msvc + name: ffi-windows-x86_64 + - os: windows-latest + platform: windows + dylib: livekit_ffi.dll + buildargs: --no-default-features --features "native-tls" # ring 0.16 is incompatible with win aarch64 + target: aarch64-pc-windows-msvc + name: ffi-windows-arm64 + - os: macos-latest + platform: macos + dylib: liblivekit_ffi.dylib + target: x86_64-apple-darwin + macosx_deployment_target: "10.15" + name: ffi-macos-x86_64 + - os: macos-latest + platform: macos + dylib: liblivekit_ffi.dylib + target: aarch64-apple-darwin + macosx_deployment_target: "11.0" # aarch64 requires 11 + name: ffi-macos-arm64 + - os: macos-latest + platform: ios + dylib: liblivekit_ffi.dylib + target: aarch64-apple-ios + iphoneos_deployment_target: "13.0" + name: ffi-ios-arm64 + - os: macos-latest + platform: ios + dylib: liblivekit_ffi.dylib + target: aarch64-apple-ios-sim + iphoneos_deployment_target: "13.0" + name: ffi-ios-sim-arm64 + - os: ubuntu-latest + platform: linux + build_image: quay.io/pypa/manylinux_2_28_x86_64 + dylib: liblivekit_ffi.so + target: x86_64-unknown-linux-gnu + name: ffi-linux-x86_64 + - os: buildjet-4vcpu-ubuntu-2204-arm + platform: linux + build_image: quay.io/pypa/manylinux_2_28_aarch64 + dylib: liblivekit_ffi.so + target: aarch64-unknown-linux-gnu + name: ffi-linux-arm64 - os: ubuntu-latest platform: android dylib: liblivekit_ffi.so @@ -145,7 +145,7 @@ jobs: - name: Copy/Build licenses run: | cat livekit-ffi/WEBRTC_LICENSE.md >> LICENSE - cp LICENSE target/${{ matrix.target }}/release/ + cp LICENSE target/${{ matrix.target }}/release/LICENSE.md shell: bash # zip the files @@ -154,14 +154,14 @@ jobs: run: | cp livekit-ffi/include/livekit_ffi.h target/${{ matrix.target }}/release/ cd target/${{ matrix.target }}/release/ - zip ${{ github.workspace }}/${{ matrix.name }}.zip ${{ matrix.dylib }} livekit_ffi.h + zip ${{ github.workspace }}/${{ matrix.name }}.zip ${{ matrix.dylib }} livekit_ffi.h LICENSE.md - name: Zip artifact (Windows) if: ${{ matrix.os == 'windows-latest' }} run: | cp livekit-ffi/include/livekit_ffi.h target/${{ matrix.target }}/release/ cd target/${{ matrix.target }}/release/ - Get-ChildItem -Path ${{ matrix.dylib }}, livekit_ffi.h | Compress-Archive -DestinationPath ${{ github.workspace }}\${{ matrix.name }}.zip + Get-ChildItem -Path ${{ matrix.dylib }}, livekit_ffi.h, LICENSE.md | Compress-Archive -DestinationPath ${{ github.workspace }}\${{ matrix.name }}.zip - name: Upload artifacts uses: actions/upload-artifact@v3 diff --git a/.github/workflows/webrtc-builds.yml b/.github/workflows/webrtc-builds.yml index 5d018dd1f..ac942eb05 100644 --- a/.github/workflows/webrtc-builds.yml +++ b/.github/workflows/webrtc-builds.yml @@ -148,5 +148,5 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: ${{ steps.setup.outputs.ZIP }} + name: webrtc-builds path: ${{ steps.setup.outputs.ZIP }} From a8443e8bdcd8c2a525959dfdef1d37356d90e8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 17:12:26 -0700 Subject: [PATCH 10/13] Update ffi-builds.yml --- .github/workflows/ffi-builds.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index 875711104..37bdf19ef 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -190,6 +190,5 @@ jobs: - name: Create draft release run: | - export VERSION="${REF_NAME#ffi-}" - gh release create ${{ github.ref_name }} --draft --title "ffi v$VERSION" + gh release create ${{ github.ref_name }} --draft --title "${{ github.ref_name }}" gh release upload ${{ github.ref_name }} ${{ github.workspace }}/ffi-builds/* \ No newline at end of file From 229971fc9c2b2f044e2dbb375d5ad1f1bfc1a5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 17:16:29 -0700 Subject: [PATCH 11/13] wip --- .github/workflows/ffi-builds.yml | 12 ++++++------ .github/workflows/webrtc-builds.yml | 6 +++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index 37bdf19ef..8f7f7bd22 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -70,12 +70,12 @@ jobs: dylib: liblivekit_ffi.so target: x86_64-unknown-linux-gnu name: ffi-linux-x86_64 - - os: buildjet-4vcpu-ubuntu-2204-arm - platform: linux - build_image: quay.io/pypa/manylinux_2_28_aarch64 - dylib: liblivekit_ffi.so - target: aarch64-unknown-linux-gnu - name: ffi-linux-arm64 + # - os: buildjet-4vcpu-ubuntu-2204-arm + # platform: linux + # build_image: quay.io/pypa/manylinux_2_28_aarch64 + # dylib: liblivekit_ffi.so + # target: aarch64-unknown-linux-gnu + # name: ffi-linux-arm64 - os: ubuntu-latest platform: android dylib: liblivekit_ffi.so diff --git a/.github/workflows/webrtc-builds.yml b/.github/workflows/webrtc-builds.yml index ac942eb05..dc3fcc953 100644 --- a/.github/workflows/webrtc-builds.yml +++ b/.github/workflows/webrtc-builds.yml @@ -13,7 +13,11 @@ # limitations under the License. name: WebRTC builds -on: workflow_dispatch +on: + push: + tags: + - "webrtc-*" + workflow_dispatch: jobs: build: From d8ea07297e4eee3e959e9e949c9e2f685ab3fa97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 17:18:49 -0700 Subject: [PATCH 12/13] Update build.rs --- livekit-ffi/build.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/livekit-ffi/build.rs b/livekit-ffi/build.rs index 91a1fc9fd..7fa2ec696 100644 --- a/livekit-ffi/build.rs +++ b/livekit-ffi/build.rs @@ -33,7 +33,6 @@ fn main() { let target_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); let out_file = Path::new(&target_dir).join("WEBRTC_LICENSE.md"); - println!("cargo:warning=Copying license to {}", out_file.display()); std::fs::copy(license, out_file).unwrap(); } From cd9999d72415b41199dda66b116533f5b81c16c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 24 Sep 2023 19:40:51 -0700 Subject: [PATCH 13/13] Update ffi-builds.yml --- .github/workflows/ffi-builds.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ffi-builds.yml b/.github/workflows/ffi-builds.yml index 8f7f7bd22..606132518 100644 --- a/.github/workflows/ffi-builds.yml +++ b/.github/workflows/ffi-builds.yml @@ -144,8 +144,12 @@ jobs: - name: Copy/Build licenses run: | - cat livekit-ffi/WEBRTC_LICENSE.md >> LICENSE - cp LICENSE target/${{ matrix.target }}/release/LICENSE.md + echo "# livekit" > TEMP_LICENSE.md + echo "```" >> TEMP_LICENSE.md + cat LICENSE >> TEMP_LICENSE.md + echo "```" >> TEMP_LICENSE.md + cat livekit-ffi/WEBRTC_LICENSE.md >> TEMP_LICENSE.md + mv TEMP_LICENSE.md target/${{ matrix.target }}/release/LICENSE.md shell: bash # zip the files