Skip to content

Commit 6321d9f

Browse files
committed
Publish
1 parent cb63932 commit 6321d9f

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
if-no-files-found: error
100100

101101
package-all:
102-
name: Package plugin + all drivers (single zip)
102+
name: Package plugin
103103
needs: build-driver
104104
runs-on: windows-latest
105105
steps:
@@ -115,32 +115,19 @@ jobs:
115115
path: drivers
116116
merge-multiple: true
117117

118-
- name: Merge driver outputs into out/build
119-
shell: pwsh
120-
run: |
121-
$presets = @('x64-release','x64-release-nohooks','linux-x64-release')
122-
foreach ($p in $presets) {
123-
$src = Join-Path 'drivers' 'out/build' $p
124-
if (Test-Path $src) {
125-
$dst = Join-Path 'out/build' $p
126-
New-Item -ItemType Directory -Force -Path $dst | Out-Null
127-
Copy-Item -Recurse -Force (Join-Path $src '*') $dst
128-
}
129-
}
130-
131118
- name: Set up .NET
132119
uses: actions/setup-dotnet@v3
133120
with:
134-
dotnet-version: '10.0.x'
121+
dotnet-version: "10.0.x"
135122

136123
- name: Restore and build (publish)
137124
run: dotnet publish /p:Configuration=Release /p:TargetFramework=net8.0 /p:PublishProfile=FolderProfile
138-
125+
139126
- name: Pack published files
140127
run: |
141128
cd plugin_OpenVR/bin/Release/publish
142129
7z a plugin_OpenVR.zip *
143-
130+
144131
- name: Upload plugin artifact
145132
uses: "marvinpinto/action-automatic-releases@latest"
146133
with:
@@ -151,3 +138,9 @@ jobs:
151138
files: |
152139
./plugin_OpenVR/bin/Release/publish/plugin_OpenVR.zip
153140
./external/manifest.json
141+
142+
- uses: geekyeggo/delete-artifact@v5
143+
with:
144+
failOnError: false
145+
name: |
146+
driver_*

plugin_OpenVR/plugin_OpenVR.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<!-- <PackageReference Include="CapnpC.CSharp.MsBuild.Generation" Version="1.3.118" />-->
3434
<PackageReference Include="Amethyst.Contract" Version="2.0.0"/>
3535
<PackageReference Include="FluentAvaloniaUI" Version="2.4.0"/>
36-
<PackageReference Include="FluentAvaloniaUI" Version="2.4.0"/>
3736
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.14.0"/>
3837
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
3938
<PackageReference Include="System.ComponentModel.Composition" Version="9.0.6"/>
@@ -77,6 +76,14 @@
7776
Visible="False"/>
7877
</ItemGroup>
7978

79+
<ItemGroup Condition="Exists('..\drivers')">
80+
<Content Include="..\drivers\**"
81+
CopyToOutputDirectory="PreserveNewest"
82+
CopyToPublishDirectory="PreserveNewest"
83+
Link="Driver\%(RecursiveDir)\%(Filename)%(Extension)"
84+
Visible="False"/>
85+
</ItemGroup>
86+
8087
<ItemGroup>
8188
<!-- Windows x64 -->
8289
<Content Include="..\vendor\openvr\bin\win64\openvr_api.dll" Link="openvr_api.dll"

0 commit comments

Comments
 (0)