Fix performance bug in Extension.toDomain #190
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: .NET Package | |
on: | |
push: | |
branches: [main] | |
paths: ["csharp/**", ".github/workflows/build-csharp.yml"] | |
pull_request: | |
branches: [main] | |
paths: ["csharp/**", ".github/workflows/build-csharp.yml"] | |
workflow_dispatch: | |
env: | |
CI_BUILD: true | |
jobs: | |
build: | |
name: Build, test and publish | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: csharp/ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
8.0.x | |
- name: Install dependencies | |
run: dotnet restore Build.csproj | |
- name: Prebuild | |
run: dotnet build ./src/Vista.SDK.SourceGenerator/Vista.SDK.SourceGenerator.csproj --no-restore -c Release | |
- name: Build | |
run: dotnet build Build.csproj --no-restore -c Release | |
- name: Test | |
run: dotnet test Build.csproj --no-build --verbosity normal -c Release | |
- name: Context | |
run: echo echo "$(pwd)" && find . -path "src/*/*.*sproj" | |
- name: Pack | |
run: find . -path "./src/*/*.*sproj" | xargs -n 1 -t dotnet pack --no-build --verbosity normal -c Release -o artifacts/ /p:Version=0.2.0-preview-$GITHUB_RUN_NUMBER | |
- name: Push | |
if: ${{ success() && !github.base_ref }} | |
run: dotnet nuget push artifacts/**.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} |