Update snapcraft.yaml #223
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI windows | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
buildtype: [Debug, Release] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: pkg | |
shell: cmd | |
run: | | |
choco install --no-progress -y windows-sdk-11-version-22h2-all | |
choco install --ignorepackagecodes --no-progress -y visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.ATLMFC --includeRecommended --nocache --installPath %MSVC_PATH%" | |
git config --global core.autocrlf false | |
git config --global core.filemode false | |
env: | |
MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community" | |
- name: depot_tools | |
shell: bash | |
run: | | |
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
- name: fetch webrtc | |
shell: cmd | |
run: | | |
set "PATH=%GITHUB_WORKSPACE%\depot_tools;%PATH%" | |
mkdir %GITHUB_WORKSPACE%\..\webrtc | |
cd /d %GITHUB_WORKSPACE%\..\webrtc | |
fetch --no-history webrtc | |
env: | |
DEPOT_TOOLS_WIN_TOOLCHAIN: 0 | |
CLANG_VERSION: ToT | |
PYTHONIOENCODING: UTF-8 | |
GYP_MSVS_VERSION: 2019 | |
- name: build | |
shell: cmd | |
run: | | |
dir /b /s "C:\Program Files (x86)\vcvars64.bat" | |
call "%MSVC_PATH%\VC\Auxiliary\Build\vcvars64.bat" | |
set "PATH=%GITHUB_WORKSPACE%\depot_tools;%GITHUB_WORKSPACE%\..\webrtc\src\third_party\llvm-build\Release+Asserts\bin;%PATH%" | |
set | |
cmake -G Ninja -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} -DCMAKE_MAKE_PROGRAM=ninja.bat -DDETECT_OPENSSL=OFF . | |
ninja | |
env: | |
MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community" | |
DEPOT_TOOLS_WIN_TOOLCHAIN: 0 | |
CLANG_VERSION: ToT | |
PYTHONIOENCODING: UTF-8 | |
GYP_MSVS_VERSION: 2019 | |
- name: cpack | |
shell: bash | |
run: | | |
rm -f *.tar.gz | |
cpack | |
echo "artifactPath=$(ls *.tar.gz)" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.artifactPath }} | |
path: ${{ env.artifactPath }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ${{ env.artifactPath }} |