Merge pull request #240 from Sergio0694/feature/ci-updates

Enable GitHub packages
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2022-04-26 18:55:32 +02:00
コミット 1445dbc50a
2ファイル変更
+37 -1

検索条件に一致するファイルはありません

+36 -1
ファイルの表示
@@ -274,4 +274,39 @@ 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
shell: cmd
# Publish the packages to GitHub packages
publish-nightlies-github:
needs: [ run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-package-native-libs ]
runs-on: windows-2022
if: ${{github.event_name == 'push'}}
steps:
- uses: actions/download-artifact@v2
with:
name: nuget_preview
path: artifacts
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- run: dotnet nuget push "artifacts\*.nupkg" --source "https://nuget.pkg.github.com/ComputeSharp/index.json" --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
shell: cmd
# Publish the packages to Azure DevOps
publish-nightlies-azure-devops:
needs: [ run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-package-native-libs ]
runs-on: windows-2022
if: ${{github.event_name == 'push'}}
steps:
- uses: actions/download-artifact@v2
with:
name: nuget_preview
path: artifacts
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
source-url: "https://sergio0694.pkgs.visualstudio.com/ComputeSharp/_packaging/ComputeSharp/nuget/v3/index.json"
env:
NUGET_AUTH_TOKEN: ${{ secrets.ADO_FEED_PERSONAL_ACCESS_TOKEN }}
- run: dotnet nuget push "artifacts\*.nupkg" --api-key AzureDevOps --skip-duplicate
shell: cmd
+1
ファイルの表示
@@ -23,6 +23,7 @@
<!-- Settings that are only set for CI builds -->
<PropertyGroup Condition="'$(GITHUB_RUN_ID)' != ''">
<PackageVersion Condition="'$(EXCLUDE_RUN_ID_FROM_PACKAGE)' != 'true'">$(Version).$(GITHUB_RUN_ID)</PackageVersion>
<PackageVersion Condition="'$(GITHUB_SHA)' != ''">$(PackageVersion)+$(GITHUB_SHA)</PackageVersion>
</PropertyGroup>
<!-- Settings that are only set for non CI builds -->