-
-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into use-coalesce-for-…
…template
- Loading branch information
Showing
207 changed files
with
3,436 additions
and
6,997 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: generate-changelog | ||
run-name: Generate changelog / ${{ github.event.head_commit.message }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
generate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
|
||
- name: Download changelog | ||
run: ./build.cmd docs-update --depth 1 --preview | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push changelog | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: docs-changelog-details | ||
FOLDER: docs/_changelog/details | ||
GIT_CONFIG_NAME: Andrey Akinshin | ||
GIT_CONFIG_EMAIL: [email protected] | ||
CLEAN: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: publish-nightly | ||
run-name: Publish nightly nupkg / ${{ github.event.head_commit.message }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'dotnet/BenchmarkDotNet' }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set date | ||
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV | ||
- name: Pack | ||
run: ./build.cmd pack /p:VersionSuffix=nightly.$DATE.$GITHUB_RUN_NUMBER | ||
- name: Upload nupkg to artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nupkgs | ||
path: "**/*.nupkg" | ||
- name: Publish nupkg | ||
env: | ||
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }} | ||
run: .dotnet/dotnet nuget push **/*.nupkg --source https://www.myget.org/F/benchmarkdotnet/api/v3/index.json --api-key $MYGET_API_KEY --timeout 600 | ||
- name: Publish snupkg | ||
env: | ||
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }} | ||
run: .dotnet/dotnet nuget push **/*.snupkg --source https://www.myget.org/F/benchmarkdotnet/api/v3/index.json --api-key $MYGET_API_KEY --timeout 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: report-test-results | ||
run-name: Report test results for '${{ github.event.workflow_run.head_branch }}' / ${{ github.event.workflow_run.head_commit.message }} | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ 'run-tests' ] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
report: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- name: Download Artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{ github.event.workflow_run.workflow_id }} | ||
- name: Display structure of downloaded files | ||
run: ls -R | ||
- name: Report tests results | ||
uses: AndreyAkinshin/test-reporter@0e2c48ebec2007001dd77dd4bcbcd450b96d5a38 | ||
with: | ||
name: report | ||
path: "**/*.trx" | ||
reporter: dotnet-trx | ||
fail-on-error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
name: run-tests | ||
run-name: Run tests / ${{ github.event.head_commit.message }} | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
test-windows-core: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Disable Windows Defender | ||
run: Set-MpPreference -DisableRealtimeMonitoring $true | ||
shell: powershell | ||
- uses: actions/checkout@v3 | ||
- name: Run task 'build' | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
./build.cmd build | ||
- name: Run task 'in-tests-core' | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
./build.cmd in-tests-core -e | ||
- name: Upload test results | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: test-windows-core-trx | ||
path: "**/*.trx" | ||
|
||
test-windows-full: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Disable Windows Defender | ||
run: Set-MpPreference -DisableRealtimeMonitoring $true | ||
shell: powershell | ||
- uses: actions/checkout@v3 | ||
- name: Run task 'build' | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
./build.cmd build | ||
- name: Run task 'in-tests-full' | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | ||
./build.cmd in-tests-full -e | ||
- name: Upload test results | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: test-windows-full-trx | ||
path: "**/*.trx" | ||
|
||
test-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Clang | ||
uses: egor-tensin/setup-clang@v1 | ||
with: | ||
version: latest | ||
platform: x64 | ||
- name: Set up zlib-static | ||
run: sudo apt-get install -y libkrb5-dev | ||
- name: Run task 'build' | ||
run: ./build.cmd build | ||
- name: Run task 'unit-tests' | ||
run: ./build.cmd unit-tests -e | ||
- name: Run task 'in-tests-core' | ||
run: ./build.cmd in-tests-core -e | ||
- name: Upload test results | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: test-linux-trx | ||
path: "**/*.trx" | ||
|
||
test-macos: | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run task 'build' | ||
run: ./build.cmd build | ||
- name: Run task 'unit-tests' | ||
run: ./build.cmd unit-tests -e | ||
- name: Run task 'in-tests-core' | ||
run: ./build.cmd in-tests-core -e | ||
- name: Upload test results | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: test-macos-trx | ||
path: "**/*.trx" | ||
|
||
spellcheck-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v1 | ||
name: Setup node | ||
with: | ||
node-version: "16" | ||
- run: npm install -g cspell | ||
name: Install cSpell | ||
- run: cspell --config ./cSpell.json "docs/**/*.md" --no-progress | ||
name: Run cSpell |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.