-
Notifications
You must be signed in to change notification settings - Fork 369
66 lines (54 loc) · 1.71 KB
/
msbuild.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: MSBuild
on:
push:
branches: [ "v2" ]
pull_request:
branches: [ "v2" ]
env:
SOLUTION_FILE_PATH: .
BUILD_CONFIGURATION: Release
VCPKG_DEFAULT_TRIPLET: x86-windows
VCPKG_INSTALLED_DIR: ./vcpkg_installed/
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: 69efe9cc2df0015f0bb2d37d55acde4a75c9a25b
- name: Install vcpkg dependencies
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./InstallDependencies.bat
- name: Install NPM packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: cd ./src/js-framework ; npm i
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild .\BetterNCMII.sln -p:Platform="All" -p:Configuration=Release
- uses: "marvinpinto/action-automatic-releases@latest"
name: Upload to Github Release
if: github.event_name != 'pull_request'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "dev-nightly"
prerelease: true
title: "Latest Test Release"
files: |
${{ github.workspace }}/Release/BetterNCMII.dll
${{ github.workspace }}/Release_86/BetterNCMII86.dll
- name: Upload Artifact
uses: actions/[email protected]
with:
name: BetterNCMII
path: |
${{ github.workspace }}/Release/BetterNCMII.dll
${{ github.workspace }}/Release_86/BetterNCMII86.dll