Fix input batching after lib update #172
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: [push] | |
env: | |
# Path to the solution file relative to the root of the project. | |
SOLUTION_FILE_PATH: . | |
# 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: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
- name: Restore VCPKG packages | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
shell: pwsh | |
run: Invoke-WebRequest -Uri "https://github.com/TheElixZammuto/moonlight-xbox/releases/download/1.10.0/vcpkg_installed.zip" -OutFile .\vcpkg_installed.zip | |
- name: Extract VCPKG packages | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
shell: pwsh | |
run: Expand-Archive .\vcpkg_installed.zip -DestinationPath .\ | |
- name: Extract VCPKG packages | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
shell: pwsh | |
run: dir .\vcpkg_installed | |
- name: Complete install of folder | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
shell: pwsh | |
run: .\vcpkg\bootstrap-vcpkg.bat | |
#- name: Complete install of folder | |
# working-directory: ${{env.GITHUB_WORKSPACE}} | |
# shell: pwsh | |
# run: .\vcpkg\vcpkg.exe install --triplet x64-uwp | |
- name: Build third party tools | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: .\generate-thirdparty-projects.bat | |
- name: Restore NuGet | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: nuget restore ${{env.SOLUTION_FILE_PATH}} | |
- name: Load Certificate | |
run: | | |
$encodedBytes = [System.Convert]::FromBase64String($env:CERTIFICATE_FILE); | |
Set-Content "cert.pfx" -Value $encodedBytes -AsByteStream; | |
Get-FileHash -Path "cert.pfx"; | |
shell: pwsh | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
env: | |
CERTIFICATE_FILE: ${{ secrets.CERTIFICATE_FILE }} | |
- 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}} /p:AppxBundle=Always /p:AppxPackageDir=output /p:PackageCertificateKeyFile=cert.pfx /p:UapAppxPackageBuildMode=SideLoadOnly ${{env.SOLUTION_FILE_PATH}} | |
- name: Load Certificate | |
run: Remove-Item -path cert.pfx | |
shell: pwsh | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: moonlight-uwp | |
path: | | |
output |