Skip to content

Commit

Permalink
Merge commit 'fd2639ff7b9e8353bb48c0eb6668c8bf32d19792' into use-coal…
Browse files Browse the repository at this point in the history
…esce-for-template
  • Loading branch information
askazakov committed Jul 19, 2023
2 parents 8312c1c + fd2639f commit 237dbad
Show file tree
Hide file tree
Showing 207 changed files with 3,436 additions and 6,997 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/build.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/generate-changelog.yaml
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/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: docs-changelog-details
FOLDER: docs/_changelog/details
GIT_CONFIG_NAME: Andrey Akinshin
GIT_CONFIG_EMAIL: andrey.akinshin@gmail.com
CLEAN: true
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: docs-stable
name: generate-gh-pages
run-name: Generate gh-pages / ${{ github.event.head_commit.message }}

on:
push:
Expand All @@ -9,7 +10,7 @@ on:
permissions: write-all

jobs:
build:
generate:
runs-on: windows-latest
steps:

Expand All @@ -19,17 +20,15 @@ jobs:
ref: docs-stable

- name: Build BenchmarkDotNet
run: ./build.bat --target Build
run: ./build.cmd build

# Temporary disabled because of the API limit
# - name: Download changelog
# run: ./build.bat --target DocFX_Changelog_Download --LatestVersions true --StableVersions true
# env:
# GITHUB_PRODUCT: ChangelogBuilder
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download changelog
run: ./build.cmd docs-update --depth 1 --preview
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build documentation
run: ./build.bat --target DocFX_Build
run: ./build.cmd docs-build

- name: Upload Artifacts
uses: actions/upload-artifact@v1
Expand All @@ -39,7 +38,7 @@ jobs:

deploy:
concurrency: ci-${{ github.ref }}
needs: [build]
needs: [generate]
runs-on: ubuntu-latest
steps:

Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/publish-nightly.yaml
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
27 changes: 27 additions & 0 deletions .github/workflows/report-test-results.yaml
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
114 changes: 114 additions & 0 deletions .github/workflows/run-tests.yaml
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
28 changes: 0 additions & 28 deletions .github/workflows/spellcheck.yml

This file was deleted.

Loading

0 comments on commit 237dbad

Please sign in to comment.