Await and Disconnection Fixes #350
Workflow file for this run
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
name: Build, Pack & Publish | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: 'recursive' | |
- name: Install msquic | |
run: sudo apt install libmsquic | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.* | |
source-url: https://api.nuget.org/v3/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Build | |
run: dotnet build src -c Release | |
- name: Execute integration tests | |
run: dotnet test src/NexNet.IntegrationTests -c Release --no-build -v=normal | |
- name: Execute generator tests | |
run: dotnet test src/NexNet.Generator.Tests -c Release --no-build -v=normal | |
- name: Pack NexNet | |
run: dotnet pack src/NexNet -c Release -o ./artifacts | |
- name: Pack NexNet.Quic | |
run: dotnet pack src/NexNet.Quic -c Release -o ./artifacts | |
- name: Pack NexNet.Generator | |
run: dotnet pack src/NexNet.Generator -c Release -o ./artifacts | |
- name: Export artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: artifacts/* | |
- name: Get tag name | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: olegtarasov/[email protected] | |
id: tagName | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: "NexNet ${{ steps.tagName.outputs.tag }} Released" | |
files: | | |
artifacts/*.nupkg | |
artifacts/*.snupkg | |
- name: Push Nuget packages | |
if: startsWith(github.ref, 'refs/tags/') | |
run: dotnet nuget push artifacts/**/*.nupkg --api-key ${{ secrets.ORG_NUGET_AUTH_TOKEN }} --skip-duplicate |