.Net 10 Support #125
This file contains hidden or 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: Code Validation | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Run Generator | |
| run: dotnet run --project Src/Generate/ | |
| - name: Build | |
| run: dotnet build --no-restore -bl | |
| - name: Pack Solution | |
| run: dotnet pack -p:PackageOutputPath="${GITHUB_WORKSPACE}/packages" -p:IncludeSymbols=false -p:RepositoryCommit=${GITHUB_SHA} -p:PackageVersion="0.0.0.1" | |
| - name: Test | |
| run: dotnet test --framework net8.0 --no-build --verbosity normal | |
| - name: Upload Binary Log | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: binary-log | |
| path: msbuild.binlog | |
| - name: Upload Packages | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: nuget-packages | |
| path: packages/* | |