CI: switch to a toolset supported by Github Actions #348
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: [push] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup MSBuild environment | |
uses: microsoft/setup-msbuild@v1 | |
- name: Switch to a toolset supported by Github Actions | |
run: (Get-Content thcrap\Base.props) -replace '<PlatformToolset>v141_xp</PlatformToolset>', '<PlatformToolset>v143</PlatformToolset>' | Set-Content thcrap\Base.props | |
#Vcpkg stuff | |
# - name: Restore or build dependencies using vcpkg | |
# uses: lukka/run-vcpkg@v2 | |
# env: | |
# vcpkgResponseFile: '${{ github.workspace }}/vcpkg.txt' | |
# with: | |
# vcpkgArguments: '@${{env.vcpkgResponseFile }}' | |
# vcpkgDirectory: '${{ github.workspace }}/vcpkg' | |
# appendedCacheKey: ${{ hashFiles(env.vcpkgResponseFile) }} | |
- name: Download C# dependencies | |
run: dotnet restore thcrap_configure_v3/thcrap_configure_v3.csproj | |
- name: Build thcrap | |
run: msbuild thcrap.sln /property:Configuration=Release | |
# run: | | |
# ${{ github.workspace }}/vcpkg/vcpkg.exe integrate install | |
# msbuild thcrap.sln /property:Configuration=Release | |
- name: Upload thcrap.zip | |
uses: actions/upload-artifact@v2 | |
with: | |
name: thcrap | |
path: bin/ |