You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1004B

  1. name: macOS
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: macOS-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: 下载submodule源码
  9. run: mv -f .gitmodules_github .gitmodules && git submodule sync && git submodule update --init
  10. # - name: 安装brew
  11. # run: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  12. #
  13. # - name: brew安装依赖库(非必选)
  14. # run: brew update && brew install cmake openssl sdl2 ffmpeg
  15. # - name: 下载 SRTP
  16. # uses: actions/checkout@v2
  17. # with:
  18. # repository: cisco/libsrtp
  19. # fetch-depth: 1
  20. # ref: v2.3.0
  21. # path: 3rdpart/libsrtp
  22. #
  23. # - name: 编译 SRTP
  24. # run: cd 3rdpart/libsrtp && ./configure --enable-openssl && make -j4 && sudo make install
  25. - name: 编译
  26. run: mkdir -p build && cd build && cmake .. && make -j $(nproc)
  27. - name: 运行MediaServer
  28. run: pwd && cd release/linux/Debug && sudo ./MediaServer -d &