2021-08-14 15:01:24 +08:00
|
|
|
name: MSVC C/C++ CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: windows-2019
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- 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'
|