-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (43 loc) · 1.21 KB
/
pr-test.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
name: Compile
# Put your personal access token in a repository secret named PAT for cross-repository access
permissions:
contents: write
on:
workflow_dispatch:
pull_request:
paths-ignore:
- '*.md'
branches:
- master
- main
- release
env:
INTERNAL_NAME: PositionalGuide
CONFIGURATION: Release
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup MSBuild
uses: microsoft/[email protected]
- 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: Restore
run: dotnet restore -r win
- name: Build
run: dotnet build -c ${{ env.CONFIGURATION }} --no-restore
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: PluginRepoZip
path: ${{ env.INTERNAL_NAME }}/bin/${{ env.CONFIGURATION }}/${{ env.INTERNAL_NAME }}
if-no-files-found: error
retention-days: 14