Update main.yml #11
Workflow file for this run
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: Get v131_xp tools | |
run: | | |
Invoke-WebRequest https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile vs_buildtools.exe | |
vs_buildtools.exe modify -add Microsoft.VisualStudio.Component.WinXP | |
vs_buildtools.exe modify -add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.WinXP | |
#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: 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/ |