mirror of
https://github.com/coturn/coturn.git
synced 2026-05-12 09:40:35 +00:00
97fd597fcb
Bumps [repolevedavaj/install-nsis](https://github.com/repolevedavaj/install-nsis) from 1.1.0 to 1.2.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/repolevedavaj/install-nsis/releases">repolevedavaj/install-nsis's releases</a>.</em></p> <blockquote> <h2>v1.2.0</h2> <!-- raw HTML omitted --> <h2>🚀 New features and improvements</h2> <ul> <li>Fix NSIS installer download (<a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/40">#40</a> <a href="https://github.com/lordmulder"><code>@lordmulder</code></a> + <a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/41">#41</a> <a href="https://github.com/repolevedavaj"><code>@repolevedavaj</code></a>)</li> </ul> <h2>📦 Dependency updates</h2> <ul> <li>Bump release-drafter/release-drafter from 6.1.0 to 7.2.0 (<a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/37">#37</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>Bump actions/checkout from 5 to 6 (<a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/29">#29</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/c14d0ea1b829818b4e9313d8e009b43f0a65fddd"><code>c14d0ea</code></a> Merge pull request <a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/41">#41</a> from repolevedavaj/fix/strlen-patch-download-url</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/7b8697d1199a09d10256551b45814079f103086b"><code>7b8697d</code></a> Apply PR <a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/40">#40</a> download fix to strlen_8192 patch step</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/9abd7fac248dc054cdc4e14fcf9b42cbd578100e"><code>9abd7fa</code></a> Merge pull request <a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/37">#37</a> from repolevedavaj/dependabot/github_actions/release-d...</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/c569f7c7d0186ead4335b0606bd0ca9d488aaada"><code>c569f7c</code></a> Merge pull request <a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/40">#40</a> from lordmulder/main</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/fb4d83d77758496ff007a717b63647e8634d138d"><code>fb4d83d</code></a> Fixed.</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/9f060d05951d525ff9528d59c9bf00561a02e60d"><code>9f060d0</code></a> Fixed</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/187e8883da4fe935fdaaf3a3bce7d7d11f5654b5"><code>187e888</code></a> Change NSIS installer download link and User-Agent</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/59638711aebe5255a768fb9cde11cc47d06c7140"><code>5963871</code></a> Bump release-drafter/release-drafter from 6.1.0 to 7.2.0</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/618f596b61aeb0254a327cceba89036242b79758"><code>618f596</code></a> Merge pull request <a href="https://redirect.github.com/repolevedavaj/install-nsis/issues/29">#29</a> from repolevedavaj/dependabot/github_actions/actions/c...</li> <li><a href="https://github.com/repolevedavaj/install-nsis/commit/81fc6efc3373bd2a346607b92f73997e28c970df"><code>81fc6ef</code></a> Bump actions/checkout from 5 to 6</li> <li>See full diff in <a href="https://github.com/repolevedavaj/install-nsis/compare/v1.1.0...v1.2.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
168 lines
6.3 KiB
YAML
168 lines
6.3 KiB
YAML
name: MSVC
|
|
|
|
on:
|
|
push:
|
|
branches: ["master"]
|
|
tags: ["4.*"]
|
|
pull_request:
|
|
branches: ["master"]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
# https://github.com/microsoft/vcpkg/releases/tag/2025.07.25
|
|
VCPKGGITCOMMITID: dd3097e305afa53f7b4312371f62058d2e665320
|
|
|
|
jobs:
|
|
code-analysis:
|
|
name: code analysis (windows-vc-${{ matrix.VCPKG_PLATFORM_TOOLSET }}-${{ matrix.CMAKE_GENERATOR_PLATFORM }}-${{ matrix.BUILD_TYPE }}-${{ matrix.BUILD_SHARED_LIBS }})
|
|
runs-on: windows-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
BUILD_TYPE: [Release]
|
|
BUILD_SHARED_LIBS: [OFF]
|
|
VCPKG_PLATFORM_TOOLSET: [v143]
|
|
CMAKE_GENERATOR_PLATFORM: [x64]
|
|
env:
|
|
SOURCE_DIR: ${{ github.workspace }}\.cache\source
|
|
TOOLS_DIR: ${{ github.workspace }}\.cache\tools
|
|
INSTALL_DIR: ${{ github.workspace }}\.cache\install_msvc_x64-windows_${{ matrix.BUILD_TYPE }}
|
|
VCPKG_PLATFORM_TOOLSET: ${{ matrix.VCPKG_PLATFORM_TOOLSET }}
|
|
CMAKE_GENERATOR_PLATFORM: ${{ matrix.CMAKE_GENERATOR_PLATFORM }}
|
|
defaults:
|
|
run:
|
|
shell: cmd
|
|
permissions:
|
|
security-events: write # required for all CodeQL to report detected outcomes
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Create directories
|
|
run: |
|
|
cmake -E make_directory ${{ env.SOURCE_DIR }}
|
|
cmake -E make_directory ${{ env.TOOLS_DIR }}
|
|
cmake -E make_directory ${{ env.INSTALL_DIR }}
|
|
|
|
- name: run-vcpkg
|
|
uses: lukka/run-vcpkg@v11
|
|
with:
|
|
# If not using a submodule for vcpkg sources, this specifies which commit
|
|
# id must be checkout from a Git repo. It must not set if using a submodule
|
|
# for vcpkg.
|
|
vcpkgGitCommitId: '${{ env.VCPKGGITCOMMITID }}'
|
|
|
|
- name: Configure
|
|
run: |
|
|
cmake -B build ^
|
|
-A ${{ matrix.CMAKE_GENERATOR_PLATFORM }} ^
|
|
-T ${{ matrix.VCPKG_PLATFORM_TOOLSET }} ^
|
|
-DWITH_MYSQL=OFF ^
|
|
-DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED_LIBS }} ^
|
|
-DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} ^
|
|
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
|
|
|
|
- name: Initialize MSVC Code Analysis
|
|
uses: microsoft/msvc-code-analysis-action@v0.1.1
|
|
# Provide a unique ID to access the SARIF output path.
|
|
id: run-analysis
|
|
with:
|
|
cmakeBuildDirectory: build
|
|
buildConfiguration: ${{ matrix.BUILD_TYPE }}
|
|
# Ruleset file that will determine what checks will be run.
|
|
ruleset: NativeRecommendedRules.ruleset
|
|
|
|
# Upload SARIF file to GitHub Code Scanning Alerts
|
|
- name: Upload SARIF to GitHub
|
|
uses: github/codeql-action/upload-sarif@v4
|
|
with:
|
|
sarif_file: ${{ steps.run-analysis.outputs.sarif }}
|
|
|
|
compile:
|
|
name: compile (${{ matrix.os }}-vc-${{ matrix.VCPKG_PLATFORM_TOOLSET }}-${{ matrix.CMAKE_GENERATOR_PLATFORM }}-${{ matrix.BUILD_TYPE }}-${{ matrix.BUILD_SHARED_LIBS }})
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
BUILD_TYPE: ["Release"]
|
|
BUILD_SHARED_LIBS: ["OFF", "ON"]
|
|
CMAKE_GENERATOR_PLATFORM: ["x64", "Win32"]
|
|
os: ["windows"]
|
|
include:
|
|
# MSVC 2022
|
|
- triplet: x64-windows
|
|
VCPKG_PLATFORM_TOOLSET: v143
|
|
CMAKE_GENERATOR_PLATFORM: x64
|
|
- triplet: x86-windows
|
|
VCPKG_PLATFORM_TOOLSET: v143
|
|
CMAKE_GENERATOR_PLATFORM: Win32
|
|
# MSVC 2019
|
|
- triplet: x86-windows
|
|
VCPKG_PLATFORM_TOOLSET: v142
|
|
CMAKE_GENERATOR_PLATFORM: Win32
|
|
runs-on: ${{ matrix.os }}-latest
|
|
env:
|
|
SOURCE_DIR: ${{ github.workspace }}\.cache\source
|
|
TOOLS_DIR: ${{ github.workspace }}\.cache\tools
|
|
INSTALL_DIR: ${{ github.workspace }}\.cache\install_msvc_${{matrix.triplet}}_${{matrix.BUILD_TYPE}}
|
|
VCPKG_PLATFORM_TOOLSET: ${{ matrix.VCPKG_PLATFORM_TOOLSET }}
|
|
CMAKE_GENERATOR_PLATFORM: ${{ matrix.CMAKE_GENERATOR_PLATFORM }}
|
|
defaults:
|
|
run:
|
|
shell: cmd
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Install NSIS for packaging
|
|
uses: repolevedavaj/install-nsis@v1.2.0
|
|
with:
|
|
nsis-version: "3.11"
|
|
if: ${{ matrix.BUILD_TYPE == 'Release' }}
|
|
|
|
- name: Create directories
|
|
run: |
|
|
cmake -E make_directory ${{ env.SOURCE_DIR }}
|
|
cmake -E make_directory ${{ env.TOOLS_DIR }}
|
|
cmake -E make_directory ${{ env.INSTALL_DIR }}
|
|
|
|
- name: run-vcpkg
|
|
uses: lukka/run-vcpkg@v11
|
|
with:
|
|
# If not using a submodule for vcpkg sources, this specifies which commit
|
|
# id must be checkout from a Git repo. It must not set if using a submodule
|
|
# for vcpkg.
|
|
vcpkgGitCommitId: '${{ env.VCPKGGITCOMMITID }}'
|
|
|
|
- name: Build Coturn
|
|
run: |
|
|
cmake -E make_directory ${{ github.workspace }}/build
|
|
cd ${{ github.workspace }}/build
|
|
cmake ${{ github.workspace }} ^
|
|
-A ${{ matrix.CMAKE_GENERATOR_PLATFORM }} ^
|
|
-T ${{ matrix.VCPKG_PLATFORM_TOOLSET }} ^
|
|
-DWITH_MYSQL=OFF ^
|
|
-DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED_LIBS }} ^
|
|
-DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} ^
|
|
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build/install ^
|
|
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
|
|
cmake --build . --config ${{ matrix.BUILD_TYPE }}
|
|
cmake --build . --config ${{ matrix.BUILD_TYPE }} --target install
|
|
|
|
- name: Package
|
|
run: |
|
|
7z a coturn_windows_msvc.zip ${{ github.workspace }}\build\install\*
|
|
cmake --build . --config ${{ matrix.BUILD_TYPE }} --target package
|
|
working-directory: ${{ github.workspace }}\build
|
|
if: ${{ matrix.BUILD_TYPE == 'Release' }}
|
|
|
|
- name: Update artifacts
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: coturn_msvc-${{ matrix.VCPKG_PLATFORM_TOOLSET }}-${{ matrix.CMAKE_GENERATOR_PLATFORM }}-${{ matrix.BUILD_SHARED_LIBS }}
|
|
path: |
|
|
${{ github.workspace }}\build\coturn_windows_msvc.zip
|
|
${{ github.workspace }}\build\coturn*.exe
|
|
${{ github.workspace }}\build\coturn*.md5
|
|
if: ${{ matrix.BUILD_TYPE == 'Release' }}
|