Skip to content

Commit edff9ff

Browse files
committed
fucking around with my frameworks again, dwai
1 parent 7288186 commit edff9ff

File tree

3 files changed

+83
-16
lines changed

3 files changed

+83
-16
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Deploy
22

33
# Put your personal access token in a repository secret named PAT for cross-repository access
44
permissions:
@@ -16,7 +16,7 @@ on:
1616

1717
env:
1818
INTERNAL_NAME: XIVComboVX
19-
CONFIGURATION: Release
19+
CONFIGURATION: release
2020
PERSONAL_PLUGIN_REPO: PrincessRTFM/MyDalamudPlugins
2121
DOTNET_CLI_TELEMETRY_OPTOUT: true
2222
DOTNET_NOLOGO: true
@@ -49,6 +49,7 @@ jobs:
4949
run: |
5050
echo "Current version is ${{ steps.data.outputs.buildVersion }} for tag ${{ steps.data.outputs.tagName }} (exists = ${{ steps.check-version-tag.outputs.tagExists }})"
5151
shell: bash
52+
5253
build:
5354
needs: precheck
5455
if: needs.precheck.outputs.tagExists == 'false'
@@ -72,7 +73,7 @@ jobs:
7273
uses: actions/upload-artifact@v4
7374
with:
7475
name: PluginRepoZip
75-
path: ${{ env.INTERNAL_NAME }}/bin/${{ env.CONFIGURATION }}/${{ env.INTERNAL_NAME }}
76+
path: ${{ env.INTERNAL_NAME }}/bin/${{ env.CONFIGURATION }}/portable/${{ env.INTERNAL_NAME }}
7677
if-no-files-found: error
7778
retention-days: 14
7879
- name: Tag

.github/workflows/pr-test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Compile
2+
3+
# Put your personal access token in a repository secret named PAT for cross-repository access
4+
permissions:
5+
contents: write
6+
7+
on:
8+
workflow_dispatch:
9+
pull_request:
10+
paths-ignore:
11+
- '*.md'
12+
branches:
13+
- master
14+
- main
15+
- release
16+
17+
env:
18+
INTERNAL_NAME: XIVComboVX
19+
CONFIGURATION: release
20+
DOTNET_CLI_TELEMETRY_OPTOUT: true
21+
DOTNET_NOLOGO: true
22+
23+
jobs:
24+
build:
25+
runs-on: windows-2022
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
submodules: recursive
31+
- name: Setup MSBuild
32+
uses: microsoft/[email protected]
33+
- name: Download Dalamud
34+
run: |
35+
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
36+
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
37+
- name: Restore
38+
run: dotnet restore -r win
39+
- name: Build
40+
run: dotnet build -c ${{ env.CONFIGURATION }} --no-restore
41+
- name: Upload build
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: PluginRepoZip
45+
path: ${{ env.INTERNAL_NAME }}/bin/${{ env.CONFIGURATION }}/portable/${{ env.INTERNAL_NAME }}
46+
if-no-files-found: error
47+
retention-days: 14

XIVComboVX/framework.props

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<Product>NAME</Product>
77
<Version>MAJOR.MINOR.PATCH</Version>
88
<Description>SUMMARY</Description>
9-
<Description>SUMMARY</Description>
109
<OutputType>{Library|Exe}</OutputType>
1110
1211
- RECOMMENDED
@@ -23,13 +22,16 @@
2322
<Deterministic>(DEPENDENT ON OUTPUT TYPE)</Deterministic>
2423
<CopyLocalLockFileAssemblies>(DEPENDENT ON OUTPUT TYPE)</CopyLocalLockFileAssemblies>
2524
<ProduceReferenceAssembly>(DEPENDENT ON OUTPUT TYPE)</ProduceReferenceAssembly>
25+
<PublishDir>bin\publish\$(RuntimeIdentifier)-$(Configuration.ToLower())\</PublishDir>
2626
2727
- STATIC OVERRIDABLE:
2828
<Platforms>x64</Platforms>
2929
<PlatformTarget>x64</PlatformTarget>
30-
<TargetFramework>net7</TargetFramework>
30+
<TargetFramework>net9</TargetFramework>
31+
<PublishSingleFile>true</PublishSingleFile>
3132
3233
- SPECIAL:
34+
<OutputPath>bin\$(Configuration.ToLower())\$(RuntimeIdentifier.ToLower() || "portable")</OutputPath>
3335
<Authors>VariableVixen[, $(Authors)]</Authors>
3436
<ContinuousIntegrationBuild>(AUTOMATICALLY ENABLED ON KNOWN CI SYSTEMS)</ContinuousIntegrationBuild>
3537
<DebugSymbols>(DEPENDENT ON BUILD CONFIGURATION)</DebugSymbols>
@@ -42,7 +44,7 @@
4244

4345
<PropertyGroup Condition=" '$(Product)' != '' ">
4446
<AssemblyName Condition=" '$(AssemblyName)' == '' ">$(Product.Replace("-", "."))</AssemblyName>
45-
<PackageId Condition=" '$(PackageId)' == '' ">$(Product.Replace("-", "."))</PackageId>
47+
<PackageId Condition=" '$(PackageId)' == '' ">$(Product.Replace("-", ".").Replace(" ", ""))</PackageId>
4648
<Title Condition=" '$(Title)' == '' ">$(Product)</Title>
4749
<PackageProjectUrl Condition=" '$(PackageProjectUrl)' == '' ">https://github.com/PrincessRTFM/$(Product)</PackageProjectUrl>
4850
</PropertyGroup>
@@ -55,7 +57,7 @@
5557
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
5658
<LangVersion>12</LangVersion>
5759
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
58-
<OutputPath>bin\$(Configuration)\</OutputPath>
60+
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
5961
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
6062
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
6163
<PublishRelease>true</PublishRelease>
@@ -66,32 +68,50 @@
6668
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
6769
<ImplicitUsings>false</ImplicitUsings>
6870
<NoWarn>CA1805,CA1852,CA1707,$(NoWarn)</NoWarn>
71+
<PathMap>$(SolutionDir)=./</PathMap>
6972
</PropertyGroup>
7073

7174
<Choose>
72-
<When Condition=" '$(Authors)' == '' ">
75+
<When Condition=" '$(RuntimeIdentifier)' == '' ">
7376
<PropertyGroup>
74-
<Authors>VariableVixen</Authors>
77+
<OutputPath>bin\$(Configuration.ToLower())\portable</OutputPath>
7578
</PropertyGroup>
7679
</When>
77-
<When Condition=" ! $([System.Text.RegularExpressions.Regex]::IsMatch($(Authors.ToLower()), '\bvariablevixen\b')) ">
80+
<Otherwise>
7881
<PropertyGroup>
79-
<Authors>VariableVixen, $(Authors)</Authors>
82+
<OutputPath>bin\$(Configuration.ToLower())\$(RuntimeIdentifier.ToLower())</OutputPath>
8083
</PropertyGroup>
81-
</When>
84+
</Otherwise>
8285
</Choose>
8386

8487
<PropertyGroup>
88+
<PublishSingleFile Condition=" '$(PublishSingleFile)' == '' ">true</PublishSingleFile>
8589
<Copyright Condition=" '$(Copyright)' == '' ">Copyleft $(Authors)</Copyright>
8690
<RepositoryUrl Condition=" '$(RepositoryUrl)' == '' ">$(PackageProjectUrl).git</RepositoryUrl>
8791
<Platforms Condition=" '$(Platforms)' == '' ">x64</Platforms>
8892
<PlatformTarget Condition=" '$(PlatformTarget)' == '' ">x64</PlatformTarget>
89-
<TargetFramework Condition=" '$(TargetFramework)' == '' ">net7</TargetFramework>
93+
<TargetFramework Condition=" '$(TargetFramework)' == '' ">net9</TargetFramework>
9094
<AssemblyVersion Condition=" '$(AssemblyVersion)' == '' ">$(Version)</AssemblyVersion>
9195
<AssemblyFileVersion Condition=" '$(AssemblyFileVersion)' == '' ">$(AssemblyVersion)</AssemblyFileVersion>
92-
<PathMap>$(SolutionDir)=./</PathMap>
9396
</PropertyGroup>
9497

98+
<PropertyGroup Condition=" '$(PublishDir)' == '' ">
99+
<PublishDir>bin\publish\$(RuntimeIdentifier)-$(Configuration.ToLower())\</PublishDir>
100+
</PropertyGroup>
101+
102+
<Choose>
103+
<When Condition=" '$(Authors)' == '' ">
104+
<PropertyGroup>
105+
<Authors>VariableVixen</Authors>
106+
</PropertyGroup>
107+
</When>
108+
<When Condition=" ! $([System.Text.RegularExpressions.Regex]::IsMatch($(Authors.ToLower()), '\bvariablevixen\b')) ">
109+
<PropertyGroup>
110+
<Authors>VariableVixen, $(Authors)</Authors>
111+
</PropertyGroup>
112+
</When>
113+
</Choose>
114+
95115
<Choose>
96116
<When Condition=" '$(OutputType.ToLower())' == 'library' ">
97117
<PropertyGroup>
@@ -109,8 +129,7 @@
109129
</Otherwise>
110130
</Choose>
111131

112-
<PropertyGroup>
113-
<!-- this is non-exhaustive, but includes the CI systems I'm aware of and will be updated as I discover more -->
132+
<PropertyGroup><!-- this is non-exhaustive, but includes the CI systems I'm aware of and will be updated as I discover more -->
114133
<ContinuousIntegrationBuild Condition=" '$(GITHUB_ACTIONS)' == 'true' ">true</ContinuousIntegrationBuild>
115134
<ContinuousIntegrationBuild Condition=" '$(TF_BUILD)' == 'true' ">true</ContinuousIntegrationBuild>
116135
</PropertyGroup>

0 commit comments

Comments
 (0)