ZLMediaKit/.github/workflows/windows.yml

31 lines
851 B
YAML
Raw Normal View History

2022-06-25 11:25:07 +08:00
name: Windows
2021-08-14 15:01:24 +08:00
2022-04-19 19:31:22 +08:00
on: [push, pull_request]
2021-08-14 15:01:24 +08:00
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
2022-06-19 15:54:30 +08:00
- name: 下载submodule源码
run: mv -Force .gitmodules_github .gitmodules && git submodule sync && git submodule update --init
2021-08-14 15:01:24 +08:00
- name: 配置 vcpkg
uses: lukka/run-vcpkg@v7
with:
vcpkgDirectory: '${{github.workspace}}/vcpkg'
vcpkgTriplet: x64-windows-static
# 2021.05.12
vcpkgGitCommitId: '5568f110b509a9fd90711978a7cb76bae75bb092'
vcpkgArguments: 'openssl libsrtp'
- name: 编译
2021-10-18 20:42:29 +08:00
uses: lukka/run-cmake@v3
2021-08-14 15:01:24 +08:00
with:
useVcpkgToolchainFile: true
buildDirectory: '${{github.workspace}}/build'
cmakeAppendedArgs: '-DCMAKE_ENABLE_WEBRTC:BOOL=ON'
cmakeBuildType: 'RelWithDebInfo'