mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-03 23:49:44 +00:00
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 2 to 3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/setup-dotnet/releases">actions/setup-dotnet's releases</a>.</em></p> <blockquote> <h2>v3.0.0</h2> <p>This major release includes the following <strong>changes:</strong></p> <ul> <li><a href="https://redirect.github.com/actions/setup-dotnet/issues/219">#219</a> New input <code>dotnet-quality</code> was added in <a href="https://redirect.github.com/actions/setup-dotnet/pull/315">#315</a>:</li> </ul> <pre lang="yaml"><code> - uses: actions/setup-dotnet@v3 with: dotnet-version: '6.0.x' dotnet-quality: 'preview' - run: dotnet build <my project> </code></pre> <p>More in detail <a href="https://github.com/actions/setup-dotnet#using-the-dotnet-quality-input">here</a>.</p> <ul> <li><a href="https://redirect.github.com/actions/setup-dotnet/issues/241">#241</a> The output variable <code>dotnet-version</code> which contains the installed by the action SDK version was added in <a href="https://redirect.github.com/actions/setup-dotnet/pull/324">#324</a>:</li> </ul> <pre lang="yaml"><code> - uses: actions/setup-dotnet@v3 id: cp310 with: dotnet-version: '3.1.422' - run: echo '${{ steps.cp310.outputs.dotnet-version }}' # outputs 3.1.422 </code></pre> <p>More in detail <a href="https://github.com/actions/setup-dotnet/tree/main#dotnet-version">here</a>.</p> <ul> <li>The <code>dotnet-version</code> syntax was updated and now it allows to specify the prerelease version without using <code>include-prerelease</code> input. The <code>include-prerelease</code> input was cut out:</li> </ul> <pre lang="yaml"><code> - uses: actions/setup-dotnet@v3 with: dotnet-version: '5.0.0-preview.6' </code></pre> <p>More in detail <a href="https://github.com/actions/setup-dotnet#supported-version-syntax">here</a>.</p> <ul> <li><a href="https://redirect.github.com/actions/setup-dotnet/issues/251">#251</a> The problem with out of support .NET version warnings was solved in <a href="https://redirect.github.com/actions/setup-dotnet/pull/315">#315</a>.</li> </ul> <p><strong>Breaking changes</strong>:</p> <ul> <li>Installation paths for Windows and Ubuntu images were changed to match the location of pre-installed SDKs. In more detail, read <a href="https://github.com/actions/setup-dotnet/blob/main/docs/adrs/v3-setup-dotnet.md#breaking-changes">here</a>.</li> </ul> <h2>Add support for Windows-arm</h2> <p>In scope of this release we <a href="https://redirect.github.com/actions/setup-dotnet/pull/320">add support for Windows-arm</a>. Besides, we change getInput to <a href="https://redirect.github.com/actions/setup-dotnet/pull/250">getBooleanInput</a> for include-prerelease.</p> <h2>Package updates, support for global json file in a subdirectory, installer scripts updates</h2> <p>This release includes the following PRs:</p> <ul> <li>Adding support for the <code>global-json-file</code> input: <a href="https://redirect.github.com/actions/setup-dotnet/issues/276">#276</a> Example of usage: <pre lang="yaml"><code>- uses: actions/setup-dotnet@v2 with: global-json-file: csharp/global.json - run: dotnet build <my project> working-directory: csharp </code></pre> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="3447fd6a9f"><code>3447fd6</code></a> feat: Cache NuGet global-packages folder (<a href="https://redirect.github.com/actions/setup-dotnet/issues/303">#303</a>)</li> <li><a href="916351aac9"><code>916351a</code></a> Merge pull request <a href="https://redirect.github.com/actions/setup-dotnet/issues/430">#430</a> from akv-platform/remove-implicit-dependencies</li> <li><a href="1ad2e312fa"><code>1ad2e31</code></a> Add missing dependency</li> <li><a href="e3f84b8f7a"><code>e3f84b8</code></a> Install eslint-plugin-node</li> <li><a href="ba848a34bb"><code>ba848a3</code></a> Update configuration files</li> <li><a href="aa983c550d"><code>aa983c5</code></a> Merge pull request <a href="https://redirect.github.com/actions/setup-dotnet/issues/428">#428</a> from akv-platform/add-latest-patch-syntax</li> <li><a href="b891376106"><code>b891376</code></a> Merge branch 'main' into add-latest-patch-syntax</li> <li><a href="b05a3f26b3"><code>b05a3f2</code></a> Fix review points, rebuild solution</li> <li><a href="5fdecd2063"><code>5fdecd2</code></a> Increase amount of retries for Dotnet installation scripts tests (<a href="https://redirect.github.com/actions/setup-dotnet/issues/427">#427</a>)</li> <li><a href="38b49fb717"><code>38b49fb</code></a> Fix informational and debug messages</li> <li>Additional commits viewable in <a href="https://github.com/actions/setup-dotnet/compare/v2...v3">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
name: Update C# API Docs
|
|
|
|
# Run when the C# API changes or every month so that the artifact does not expire
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- csharp/**
|
|
schedule:
|
|
- cron: '0 0 1 * *'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: "apidocs-csharp"
|
|
cancel-in-progress: false
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCFXVERSION: 2.62.2
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: 6.0.x
|
|
- name: Restore dependencies
|
|
run: dotnet restore csharp/ApiDocs/ApiDocs.csproj
|
|
- name: Download DocFX
|
|
run: |
|
|
mkdir -p build/docfx
|
|
wget https://github.com/dotnet/docfx/releases/download/v${DOCFXVERSION}/docfx-linux-x64-v${DOCFXVERSION}.zip -O build/docfx/docfx.zip
|
|
unzip build/docfx/docfx.zip -d build/docfx
|
|
- name: Install NuGet
|
|
uses: nuget/setup-nuget@v1
|
|
- name: Build Documentation
|
|
run: |
|
|
build/docfx/docfx metadata csharp/ApiDocs/docfx.json
|
|
dotnet build csharp/ApiDocs/ApiDocs.csproj --no-restore
|
|
build/docfx/docfx build csharp/ApiDocs/docfx.json
|
|
- name: Log source commit
|
|
run: git rev-parse --short HEAD > csharp/ApiDocs/csharp/source-version.txt
|
|
- name: Move C# docs into site
|
|
run: |
|
|
mkdir -p _site/docs/api
|
|
rm -rf _site/docs/api/csharp
|
|
mv csharp/ApiDocs/csharp _site/docs/api/csharp
|
|
- name: Upload docs artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: onnxruntime-csharp-apidocs
|
|
path: _site
|
|
retention-days: 60
|