forked from Caraxi/SimpleTweaksPlugin
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 1.11 KB
/
pr-build.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
name: Build SimpleTweaksPlugin for PullRequest
on:
pull_request:
jobs:
build:
runs-on: [windows-2022]
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
with:
vs-prerelease: true
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Restore NuGet Packages
run: nuget restore dev/SimpleTweaksPlugin.Dev.sln
- name: Download Dalamud
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev"
- name: Build
run: msbuild dev/SimpleTweaksPlugin.Dev.sln /p:Configuration=Debug
- name: Extract Publish
run: |
Expand-Archive -Force ./bin/x64/Debug/SimpleTweaksPlugin/latest.zip ./Artifact
- name: Upload Build Artifact
uses: actions/upload-artifact@v2.2.1
with:
name: pr-artifact
path: ./Artifact/*