update known information for Mumble to version 1.5.634 #773
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: MSBuild on Windows | |
on: [push] | |
env: | |
# Path to the solution file relative to the root of the project. | |
SOLUTION_FILE_PATH: updater\updater.sln | |
# Configuration type to build. | |
# You can convert this to a build matrix if you need coverage of multiple configuration types. | |
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
BUILD_CONFIGURATION: Release | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
# - windows-2019 - Visual Studio 2019 does not support .NET 6. | |
- windows-2022 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Restore NuGet packages | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: nuget restore ${{env.SOLUTION_FILE_PATH}} | |
- name: Build | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
# Add additional options to the MSBuild command line here (like platform or verbosity level). | |
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference | |
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} | |
# InnoSetup 6.2.2 is already installed on the Windows 2022 image. See | |
# <https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md> | |
# for pre-installed software. | |
- name: Create installer | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
shell: cmd | |
run: | | |
"C:\Program Files (x86)\Inno Setup 6\iscc.exe" "setup\setup.iss" | |
for /f %%i IN ('git describe --always') do set "VERSION=%%i" | |
echo Version is %VERSION%. | |
move output\updater_setup.exe output\updater_setup_%VERSION%.exe | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: installer-${{ matrix.os }} | |
path: output\*.exe | |
- name: Create ZIP file | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
shell: cmd | |
run: | | |
for /f %%i IN ('git describe --always') do set "VERSION=%%i" | |
echo Version is %VERSION%. | |
md updater-%VERSION% | |
copy updater\bin\Release\net6.0-windows\updater.exe updater-%VERSION% | |
copy updater\bin\Release\net6.0-windows\updater.dll updater-%VERSION% | |
copy updater\bin\Release\net6.0-windows\updater.runtimeconfig.json updater-%VERSION% | |
copy "%USERPROFILE%\.nuget\packages\nlog\5.3.2\lib\netstandard2.0\NLog.dll" updater-%VERSION% | |
copy "%USERPROFILE%\.nuget\packages\newtonsoft.json\13.0.3\lib\netstandard2.0\Newtonsoft.Json.dll" updater-%VERSION% | |
copy LICENSE updater-%VERSION% | |
md updater-%VERSION%\documentation | |
copy readme.md updater-%VERSION%\documentation | |
copy changelog.md updater-%VERSION%\documentation | |
copy faq.md updater-%VERSION%\documentation | |
copy supported_applications.md updater-%VERSION%\documentation | |
"C:\Program Files\7-Zip\7z.exe" a -r updater_%VERSION%.zip updater-%VERSION% | |
- name: Upload zipped updater | |
uses: actions/upload-artifact@v4 | |
with: | |
name: updater-zipped | |
if-no-files-found: error | |
path: updater*.zip |