diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 210f11b5..fb67e0f5 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -53,5 +53,7 @@ jobs: + '- 分支: ${{ env.BRANCH2 }}\n' + '- git hash: ${{ github.sha }} \n' + '- 编译日期: ${{ env.DATE }}\n' + + '- 编译记录: [${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})\n' + + '- 开启特性: 未开启openssl/webrtc/datachannel等功能\n' + '- 打包ci名: ${{ github.workflow }}\n' }) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2e79942c..434bf501 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -21,33 +21,57 @@ jobs: ref: v2.3.0 path: 3rdpart/libsrtp + - name: 下载 openssl + uses: actions/checkout@v2 + with: + repository: openssl/openssl + fetch-depth: 1 + ref: OpenSSL_1_1_1 + path: 3rdpart/openssl + + - name: 下载 usrsctp + uses: actions/checkout@v2 + with: + repository: sctplab/usrsctp + fetch-depth: 1 + ref: 0.9.5.0 + path: 3rdpart/usrsctp + - name: 启动 Docker 容器, 在Docker 容器中执行脚本 run: | docker pull centos:7 docker run -v $(pwd):/root -w /root --rm centos:7 sh -c " set -x - yum install -y git wget gcc gcc-c++ make unzip ffmpeg-devel libavutil-devel libswscale-devel libresample-devel usrsctp-devel + yum install -y git wget gcc gcc-c++ make + + mkdir -p /root/install - wget https://github.com/openssl/openssl/archive/refs/heads/OpenSSL_1_1_1-stable.zip - unzip OpenSSL_1_1_1-stable.zip - cd openssl-OpenSSL_1_1_1-stable - ./config no-shared --prefix=/root/release + cd 3rdpart/openssl + ./config no-shared --prefix=/root/install make -j $(nproc) make install - cd .. - - wget https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5.tar.gz - tar -xvf cmake-3.29.5.tar.gz - cd cmake-3.29.5 - OPENSSL_ROOT_DIR=/root/release ./configure - make -j $(nproc) - make install - cd .. - - cd 3rdpart/libsrtp && ./configure --enable-openssl --with-openssl-dir=/root/release && make -j $(nproc) && make install cd ../../ - mkdir -p linux_build && cd linux_build && cmake .. -DOPENSSL_ROOT_DIR=/root/release -DCMAKE_BUILD_TYPE=Release -DENABLE_FFMPEG=true && make -j $(nproc) + wget https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5.tar.gz + tar -xf cmake-3.29.5.tar.gz + cd cmake-3.29.5 + OPENSSL_ROOT_DIR=/root/install ./configure + make -j $(nproc) + make install + cd .. + + cd 3rdpart/usrsctp + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. + make -j $(nproc) + make install + cd ../../../ + + cd 3rdpart/libsrtp && ./configure --enable-openssl --with-openssl-dir=/root/install && make -j $(nproc) && make install + cd ../../ + + mkdir -p linux_build && cd linux_build && cmake .. -DOPENSSL_ROOT_DIR=/root/install -DCMAKE_BUILD_TYPE=Release && make -j $(nproc) " - name: 设置环境变量 @@ -79,6 +103,8 @@ jobs: + '- 分支: ${{ env.BRANCH2 }}\n' + '- git hash: ${{ github.sha }} \n' + '- 编译日期: ${{ env.DATE }}\n' - + '- 打包ci名: ${{ github.workflow }}\n' - + '- 说明: 本二进制在centos7(x64)上编译,请确保您的机器系统不低于此版本,并提前`sudo yum check-update && sudo yum install -y openssl-devel ffmpeg-devel libavutil-devel libswscale-devel libresample-devel usrsctp-devel`安装依赖项\n' + + '- 编译记录: [${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})\n' + + '- 打包ci名: ${{ github.workflow }}\n' + + '- 开启特性: openssl/webrtc/datachannel\n' + + '- 说明: 本二进制在centos7(x64)上编译,请确保您的机器系统不低于此版本\n' }) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 6482dac4..3cc2cceb 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -20,7 +20,7 @@ jobs: vcpkgTriplet: arm64-osx # 2024.06.01 vcpkgGitCommitId: '47364fbc300756f64f7876b549d9422d5f3ec0d3' - vcpkgArguments: 'openssl libsrtp[openssl]' + vcpkgArguments: 'openssl libsrtp[openssl] usrsctp' - name: 编译 uses: lukka/run-cmake@v3 @@ -59,6 +59,8 @@ jobs: + '- 分支: ${{ env.BRANCH2 }}\n' + '- git hash: ${{ github.sha }} \n' + '- 编译日期: ${{ env.DATE }}\n' + + '- 编译记录: [${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})\n' + '- 打包ci名: ${{ github.workflow }}\n' + + '- 开启特性: openssl/webrtc/datachannel\n' + '- 说明: 此二进制为arm64版本\n' }) \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 7f224be8..d444bdbc 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -19,7 +19,7 @@ jobs: vcpkgTriplet: x64-windows-static # 2024.06.01 vcpkgGitCommitId: '47364fbc300756f64f7876b549d9422d5f3ec0d3' - vcpkgArguments: 'openssl libsrtp[openssl]' + vcpkgArguments: 'openssl libsrtp[openssl] usrsctp' - name: 编译 uses: lukka/run-cmake@v3 @@ -61,6 +61,8 @@ jobs: + '- 分支: ${{ env.BRANCH2 }}\n' + '- git hash: ${{ github.sha }} \n' + '- 编译日期: ${{ env.DATE }}\n' + + '- 编译记录: [${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})\n' + '- 打包ci名: ${{ github.workflow }}\n' + + '- 开启特性: openssl/webrtc/datachannel\n' + '- 说明: 此二进制为x64版本\n' })