Fix mistake on previous workflow edits (#1950)

* Fix restore command on workflows.

- Correct path when restoring application packages.
- Add --no-restore for application build.

* Add RuntimeIdentifiers.

So restore knows what packages to pick.
This commit is contained in:
Teemu Korhonen
2025-10-09 13:05:55 +02:00
committed by GitHub
parent ceaf074758
commit 06dba04104
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -31,10 +31,10 @@ jobs:
} | Set-Content Directory.Build.props
- name: Restore application packages
run: dotnet restore LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj
run: dotnet restore LibreHardwareMonitor\LibreHardwareMonitor.csproj
- name: Build application
run: dotnet build LibreHardwareMonitor\LibreHardwareMonitor.csproj -c Release -p:Platform=x64
run: dotnet build LibreHardwareMonitor\LibreHardwareMonitor.csproj -c Release --no-restore -p:Platform=x64
- name: Publish application
uses: actions/upload-artifact@v4
+2 -2
View File
@@ -31,10 +31,10 @@ jobs:
} | Set-Content Directory.Build.props
- name: Restore application packages
run: dotnet restore LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj
run: dotnet restore LibreHardwareMonitor\LibreHardwareMonitor.csproj
- name: Build application
run: dotnet build LibreHardwareMonitor\LibreHardwareMonitor.csproj -c Release -p:Platform=x64
run: dotnet build LibreHardwareMonitor\LibreHardwareMonitor.csproj -c Release --no-restore -p:Platform=x64
- name: Publish application
uses: actions/upload-artifact@v4
@@ -17,6 +17,7 @@
<OutputPath>..\bin\$(Configuration)\</OutputPath>
<LangVersion>latest</LangVersion>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<DebugType>full</DebugType>