forked from thpatch/thcrap
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.51 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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/