Switch CI build to solution wide
このコミットが含まれているのは:
1 親
db2ea3feaf
コミット
424c3e45b2
1ファイル変更
+15
-92
+15
-92
@@ -4,25 +4,30 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
# Build the ComputeSharp project directly. This is the project that
|
||||
# would be built when running any of the local samples or unit tests.
|
||||
build-project:
|
||||
# Build the whole ComputeSharp solution project directly
|
||||
build-solution:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/[email protected]
|
||||
- name: Setup .NET Core 3.1 SDK
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.x
|
||||
- name: Setup .NET 6 SDK
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Build
|
||||
run: dotnet build src\ComputeSharp\ComputeSharp.csproj -c Release
|
||||
run: msbuild -t:restore,build /p:Configuration=Release /p:Platform=x64
|
||||
shell: cmd
|
||||
|
||||
# Run all the unit tests referencing the ComputeSharp project directly
|
||||
run-tests:
|
||||
if: success()
|
||||
needs: [build-project]
|
||||
needs: [build-solution]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
@@ -126,7 +131,7 @@ jobs:
|
||||
# This workflow also uploads the resulting package as an artifact.
|
||||
build-package:
|
||||
if: success()
|
||||
needs: [build-project]
|
||||
needs: [build-solution]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
@@ -188,7 +193,7 @@ jobs:
|
||||
# Run the extra tests to validate a number of build and publishing configurations.
|
||||
# This is used to ensure the native dependencies can always be loaded correctly
|
||||
# regardless of whether the app is shipping with R2R, self-contained, etc.
|
||||
verify-libs:
|
||||
verify-package-native-libs:
|
||||
if: success()
|
||||
needs: [verify-package]
|
||||
runs-on: windows-2022
|
||||
@@ -203,31 +208,11 @@ jobs:
|
||||
run: dotnet test tests\ComputeSharp.Tests.NativeLibrariesResolver\ComputeSharp.Tests.NativeLibrariesResolver.csproj -v n -l "console;verbosity=detailed"
|
||||
shell: cmd
|
||||
|
||||
# Build the WinUI project
|
||||
build-project-winui:
|
||||
if: success()
|
||||
needs: [build-project]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/[email protected]
|
||||
with:
|
||||
vs-prerelease: true
|
||||
- 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,build /p:Configuration=Release
|
||||
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: [build-project-winui, verify-package]
|
||||
needs: [verify-package]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
@@ -250,52 +235,11 @@ jobs:
|
||||
name: ComputeSharp.WinUI.nupkg
|
||||
path: src\ComputeSharp.WinUI\bin\Release\*.nupkg
|
||||
|
||||
# Build the local WinUI sample to ensure it builds with no errors
|
||||
build-samples-winui:
|
||||
if: success()
|
||||
needs: [build-project-winui]
|
||||
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: Restore ComputeSharp.SwapChain.WinUI sample
|
||||
run: msbuild samples\ComputeSharp.SwapChain.WinUI\ComputeSharp.SwapChain.WinUI.csproj -t:restore /p:Configuration=Release /p:Platform=x64
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.SwapChain.WinUI sample
|
||||
run: msbuild samples\ComputeSharp.SwapChain.WinUI\ComputeSharp.SwapChain.WinUI.csproj -t:build /p:Configuration=Release /p:Platform=x64
|
||||
shell: cmd # the build of the sample has to be a separate step, as '-t:restore,build' causes the build to fail
|
||||
|
||||
# Build the UWP project
|
||||
build-project-uwp:
|
||||
if: success()
|
||||
needs: [build-project]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/[email protected]
|
||||
with:
|
||||
vs-prerelease: true
|
||||
- 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 /p:Configuration=Release
|
||||
shell: cmd
|
||||
|
||||
# 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: [build-project-uwp, verify-package]
|
||||
needs: [verify-package]
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Git checkout
|
||||
@@ -313,25 +257,4 @@ jobs:
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ComputeSharp.Uwp.nupkg
|
||||
path: src\ComputeSharp.Uwp\bin\Release\*.nupkg
|
||||
|
||||
# Build the local UWP sample to ensure it builds with no errors
|
||||
build-samples-uwp:
|
||||
if: success()
|
||||
needs: [build-project-uwp]
|
||||
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: Restore ComputeSharp.SwapChain.Uwp sample
|
||||
run: msbuild samples\ComputeSharp.SwapChain.Uwp\ComputeSharp.SwapChain.Uwp.csproj -t:restore /p:Configuration=Release /p:Platform=x64
|
||||
shell: cmd
|
||||
- name: Build ComputeSharp.SwapChain.Uwp sample
|
||||
run: msbuild samples\ComputeSharp.SwapChain.Uwp\ComputeSharp.SwapChain.Uwp.csproj -t:build /p:Configuration=Release /p:Platform=x64
|
||||
shell: cmd
|
||||
path: src\ComputeSharp.Uwp\bin\Release\*.nupkg
|
||||
新しいイシューから参照
ユーザーをブロックする