Build and upload all NuGet packages together
このコミットが含まれているのは:
1 親
95e669720f
コミット
a1d4dbef67
3ファイル変更
+53
-116
検索条件に一致するファイルはありません
+47
-113
@@ -48,6 +48,47 @@ jobs:
|
||||
run: msbuild -t:restore,build /p:Configuration=Release /p:Platform=x64
|
||||
shell: cmd
|
||||
|
||||
# Build the .msbuildproj projects and the UWP/WinUI projects to generate all the NuGet packages.
|
||||
# This workflow also uploads the resulting packages as artifacts.
|
||||
build-packages:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/[email protected]
|
||||
- name: Setup .NET 6 SDK
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Build ComputeSharp.Core package
|
||||
run: dotnet build src\ComputeSharp.Core.Package\ComputeSharp.Core.Package.msbuildproj -c Release
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp package
|
||||
run: dotnet build src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj -c Release
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.Dynamic package
|
||||
run: dotnet build src\ComputeSharp.Dynamic.Package\ComputeSharp.Dynamic.Package.msbuildproj -c Release
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.D2D1 package
|
||||
run: dotnet build src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj -c Release
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.Uwp package
|
||||
run: msbuild src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj -t:restore,build,pack /p:Configuration=Release
|
||||
shell: cmd
|
||||
- name: Restore ComputeSharp.WinUI project
|
||||
run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /p:Configuration=Release
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.WinUI package
|
||||
run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:pack /p:Configuration=Release
|
||||
shell: cmd # Packing needs to be done separately and with no previous build target for it to work correctly
|
||||
- name: Upload package artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: nuget_preview
|
||||
path: artifacts\*.nupkg
|
||||
if-no-files-found: error
|
||||
|
||||
# Run all the DX12 unit tests referencing the ComputeSharp project directly
|
||||
run-dx12-tests:
|
||||
if: success()
|
||||
@@ -176,52 +217,6 @@ jobs:
|
||||
run: dotnet build samples\ComputeSharp.SwapChain\ComputeSharp.SwapChain.csproj -c Release
|
||||
shell: cmd
|
||||
|
||||
# Build the .msbuildproj projects to generate the NuGet packages.
|
||||
# This workflow also uploads the resulting packages as artifacts.
|
||||
build-packages:
|
||||
if: success()
|
||||
needs: [build-solution-debug, build-solution-release]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup .NET 6 SDK
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Build ComputeSharp.Core package
|
||||
run: dotnet build src\ComputeSharp.Core.Package\ComputeSharp.Core.Package.msbuildproj -c Release
|
||||
shell: cmd
|
||||
- name: Upload ComputeSharp.Core package artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.Core.nupkg
|
||||
path: src\ComputeSharp.Core.Package\bin\Release\*.nupkg
|
||||
- name: Build ComputeSharp package
|
||||
run: dotnet build src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj -c Release
|
||||
shell: cmd
|
||||
- name: Upload ComputeSharp package artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.nupkg
|
||||
path: src\ComputeSharp.Package\bin\Release\*.nupkg
|
||||
- name: Build ComputeSharp.Dynamic package
|
||||
run: dotnet build src\ComputeSharp.Dynamic.Package\ComputeSharp.Dynamic.Package.msbuildproj -c Release
|
||||
shell: cmd
|
||||
- name: Upload ComputeSharp.Dynamic package artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.Dynamic.nupkg
|
||||
path: src\ComputeSharp.Dynamic.Package\bin\Release\*.nupkg
|
||||
- name: Build ComputeSharp.D2D1 package
|
||||
run: dotnet build src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj -c Release
|
||||
shell: cmd
|
||||
- name: Upload ComputeSharp.D2D1 package artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.D2D1.nupkg
|
||||
path: src\ComputeSharp.D2D1.Package\bin\Release\*.nupkg
|
||||
|
||||
# Download the NuGet packages generated in the previous job and use them
|
||||
# to build and run the sample project referencing them. This is used as
|
||||
# a test to ensure the NuGet packages work in a consuming project.
|
||||
@@ -237,23 +232,13 @@ jobs:
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Create local NuGet feed
|
||||
run: mkdir src\ComputeSharp.Package\bin\Release
|
||||
run: mkdir nuget_preview
|
||||
shell: cmd
|
||||
- name: Download ComputeSharp.Core package artifact
|
||||
- name: Download package artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.Core.nupkg
|
||||
path: src\ComputeSharp.Core.Package\bin\Release\ComputeSharp.Core.nupkg
|
||||
- name: Download ComputeSharp package artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.nupkg
|
||||
path: src\ComputeSharp.Package\bin\Release\ComputeSharp.nupkg
|
||||
- name: Download ComputeSharp.Dynamic package artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.Dynamic.nupkg
|
||||
path: src\ComputeSharp.Dynamic.Package\bin\Release\ComputeSharp.Dynamic.nupkg
|
||||
name: nuget_preview
|
||||
path: nuget_preview
|
||||
- name: Build ComputeSharp.Sample.NuGet (.NET 6)
|
||||
run: dotnet build samples\ComputeSharp.Sample.NuGet\ComputeSharp.Sample.NuGet.csproj -c Release -f net6.0
|
||||
shell: cmd
|
||||
@@ -278,7 +263,7 @@ jobs:
|
||||
# regardless of whether the app is shipping with R2R, self-contained, etc.
|
||||
verify-package-native-libs:
|
||||
if: success()
|
||||
needs: [verify-packages]
|
||||
needs: [build-packages]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
@@ -289,55 +274,4 @@ jobs:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Run ComputeSharp.Tests.NativeLibrariesResolver
|
||||
run: dotnet test tests\ComputeSharp.Tests.NativeLibrariesResolver\ComputeSharp.Tests.NativeLibrariesResolver.csproj -v n -l "console;verbosity=detailed"
|
||||
shell: cmd
|
||||
|
||||
# Build the WinUI project again to generate a NuGet package from it.
|
||||
# This workflow also uploads the resulting package as an artifact.
|
||||
build-package-winui:
|
||||
if: success()
|
||||
needs: [verify-packages]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/[email protected]
|
||||
- name: Setup .NET SDK
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Build
|
||||
run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /p:Configuration=Release
|
||||
shell: cmd
|
||||
- name: Build
|
||||
run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:pack /p:Configuration=Release
|
||||
shell: cmd # Packing needs to be done separately and with no previous build target for it to work correctly
|
||||
- name: Upload package artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.WinUI.nupkg
|
||||
path: src\ComputeSharp.WinUI\bin\Release\*.nupkg
|
||||
|
||||
# Build the UWP project again to generate a NuGet package from it.
|
||||
# This workflow also uploads the resulting package as an artifact, like the WinUI one.
|
||||
build-package-uwp:
|
||||
if: success()
|
||||
needs: [verify-packages]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/[email protected]
|
||||
- name: Setup .NET SDK
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Build
|
||||
run: msbuild src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj -t:restore,build,pack /p:Configuration=Release
|
||||
shell: cmd
|
||||
- name: Upload package artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.Uwp.nupkg
|
||||
path: src\ComputeSharp.Uwp\bin\Release\*.nupkg
|
||||
shell: cmd
|
||||
@@ -7,6 +7,11 @@
|
||||
<NoWarn>$(NoWarn);MSB3270</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Centralized location for all generated artifacts -->
|
||||
<PropertyGroup>
|
||||
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts/</PackageOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||||
<VersionPrefix>2.0.0</VersionPrefix>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="ComputeSharp-Core" value="..\..\src\ComputeSharp.Core.Package\bin\Release" />
|
||||
<add key="ComputeSharp" value="..\..\src\ComputeSharp.Package\bin\Release" />
|
||||
<add key="ComputeSharp-Dynamic" value="..\..\src\ComputeSharp.Dynamic.Package\bin\Release" />
|
||||
<add key="nuget_preview" value="..\..\nuget_preview" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
新しいイシューから参照
ユーザーをブロックする