-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.11 KB
/
Build.yml
File metadata and controls
39 lines (32 loc) · 1.11 KB
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
name: CI Build
on:
workflow_dispatch:
env:
REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip
REFERENCES_PATH: ${{ github.workspace }}/References
jobs:
build:
runs-on: windows-latest
steps:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
- uses: actions/checkout@v3.3.0
- name: Restore Packages
run: nuget restore
- name: Get Build References
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.REFERENCES_URL }} -OutFile ${{ github.workspace }}/Dev.zip
Expand-Archive -Path Dev.zip -DestinationPath ${{ env.REFERENCES_PATH }}
- name: Setup MSBuild.exe
uses: microsoft/Setup-MSBuild@v1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Build
run: |
msbuild CustomUnit\CustomUnit.csproj -t:rebuild -property:Configuration=Release -property:ReferencePath="${{ env.REFERENCES_PATH }}"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Build Result
path: "CustomUnit/bin/Release/CustomUnit.dll"