-
-
Notifications
You must be signed in to change notification settings - Fork 30
50 lines (40 loc) · 1.13 KB
/
nightly.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
name: Nightly Build
on:
push:
paths-ignore:
- 'README.md'
- 'CONTRIBUTING'
- 'LICENSE'
- 'docs/**'
env:
SOLUTION_FILE_PATH: ./src/DesktopPlus.sln
OUTPUT_PATH: ./src/x64/Release
BUILD_CONFIGURATION: Release
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet Packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:DPLUS_SHA='"${{github.sha}}"' ${{env.SOLUTION_FILE_PATH}}
- name: Rename Output Folder for Archive
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ren ${{env.OUTPUT_PATH}} DesktopPlus
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: DesktopPlus-NewUI-${{github.sha}}
path: |
./src/x64
!./**/*.h
!./**/*.lib
!./**/*.exp