Supported TFM are now netstandard2.1 and net8.0, dropped net6.0 (#8) #56
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: .NET | |
| on: | |
| push: | |
| branches: [ main, 'version/**', 'pr/**', 'pr-**' ] | |
| paths-ignore: | |
| - '**/*.md' | |
| pull_request: | |
| branches: [ main, 'version/**', 'pr/**', 'pr-**' ] | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - '**/*.md' | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| version: '2.2.0' | |
| versionFile: '2.2.0' | |
| packDotNetVersion: '8' | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-22.04 ] | |
| dotnet-version: [ '3.x', '8.x' ] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: Restore dependencies | |
| run: dotnet restore ./Src/VirtualFileSystem.sln | |
| - name: Build | |
| run: dotnet build --no-restore ./Src/VirtualFileSystem.sln | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal ./Src/VirtualFileSystem.sln | |
| - name: Pack | |
| if: startsWith(matrix.dotnet-version, env.packDotNetVersion) | |
| run: | | |
| echo "Packing Version: ${{ env.version }}, File Version: ${{ env.versionFile }}" | |
| dotnet build ./Src/VirtualFileSystem.sln /verbosity:minimal --configuration release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:ContinuousIntegrationBuild=true /p:PackageOutputPath=${{ github.workspace }}/artifacts/ /p:Version=${{ env.version }} /p:FileVersion=${{ env.versionFile }} | |
| dotnet pack ./Src/VirtualFileSystem.sln /verbosity:minimal --configuration release | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: startsWith(matrix.dotnet-version, env.packDotNetVersion) | |
| with: | |
| name: Packages_${{ env.version }} | |
| path: ${{ github.workspace }}/artifacts/ |