Skip to content

Commit

Permalink
Fix GH Actions by checking out the repo on every step
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Jan 14, 2024
1 parent 32a059b commit c23bb83
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand All @@ -39,6 +37,8 @@ jobs:
runs-on: ubuntu-latest
needs: build_commit
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand All @@ -58,6 +58,8 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand All @@ -83,6 +85,8 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
runs-on: ubuntu-latest
needs: build_pr
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand All @@ -58,6 +60,8 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
mkdir build
dotnet pack -c Release -o build /p:Version=${{ github.event.release.tag_name }}
dotnet nuget push "build/*" --skip-duplicate -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet tool update -g docfx --prerelease
docfx docs/docfx.json
- name: Upload NuGet packages to GitHub Actions
uses: actions/upload-artifact@v3
with:
Expand All @@ -54,8 +52,8 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
omitNameDuringUpdate: true # We don't want to update the name of the release.
omitBodyDuringUpdate: true # We don't want to update the body of the release.
document_commit:
name: Document Commit
document_release:
name: Document Release
runs-on: ubuntu-latest
needs: publish_release
permissions:
Expand All @@ -65,6 +63,19 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8
7
- name: Build Project
run: |
dotnet build
dotnet tool update -g docfx --prerelease
docfx docs/docfx.json
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1
with:
Expand All @@ -76,6 +87,7 @@ jobs:
name: Test Release
runs-on: "self-hosted"
if: "!contains(github.event.head_commit.message, '[ci-skip]') && github.ref_name == 'master' && github.event_name == 'push'"
needs: publish_release
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -88,10 +100,7 @@ jobs:
- name: Publish NuGet packages
run: |
mkdir build
dotnet build -c Release
dotnet pack -c Release -o build
dotnet tool update -g docfx --prerelease
docfx docs/docfx.json
- name: Upload NuGet packages to GitHub Actions
uses: actions/upload-artifact@v3
with:
Expand Down

1 comment on commit c23bb83

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Machine Information:

BenchmarkDotNet v0.13.7, Ubuntu 22.04.3 LTS (Jammy Jellyfish)

  • AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
  • Hardware Intrinsics: AVX2, AES, BMI1, BMI2, FMA, LZCNT, PCLMUL, POPCNT VectorSize=256
  • .NET 8.0.1 (8.0.123.58001), x64, RyuJIT
  • Total Execution Time: 47.297s

HyperBenchmarks

Execution Time: 45.919s

FullHttpRequest:

Mean: 377.45μs
Error: 414ns
StdDev: 1.60μs
Max per second: 2,649.36 (1,000,000,000ns / 377,449.14ns)

HyperContextRespondAsync:

Mean: 12.62μs
Error: 16ns
StdDev: 60ns
Max per second: 79,238.14 (1,000,000,000ns / 12,620.19ns)

ParseHeadersTestAsync:

Mean: 5.59μs
Error: 9ns
StdDev: 35ns
Max per second: 178,785.09 (1,000,000,000ns / 5,593.31ns)

HttpBenchmarks

Execution Time: 1.378s

HyperSharpTestAsync, Baseline, Failed:

No results.

EmbedIoTestAsync, Failed:

No results.

GenHttpTestAsync, Failed:

No results.

HttpCoreTestAsync, Failed:

No results.

HttpListenerTestAsync, Failed:

No results.

Please sign in to comment.