Repository navigation
[r] convert example repository classes to primary constructors and to… #557
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: Build Package | |
| on: push | |
| defaults: | |
| run: | |
| working-directory: src | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| include: | |
| - os: windows-latest | |
| solution: Simplify.slnx | |
| tests-exclude-category: Linux | |
| - os: ubuntu-latest | |
| solution: Simplify.NetCore.slnx | |
| tests-exclude-category: Windows | |
| test-framework-command: --framework net10.0 | |
| env: | |
| DOTNET_TEST_FRAMEWORK: ${{ matrix.dotnet-test-framework }} # Set at job level | |
| steps: | |
| - name: Code Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install DotNet | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - name: Restore Dependencies | |
| run: dotnet restore ${{ matrix.solution }} | |
| - name: Build Packages | |
| run: dotnet build ${{ matrix.solution }} --no-restore -c Release | |
| - name: Perform Unit Testing | |
| run: dotnet test ${{ matrix.solution }} --no-build -c Release ${{ matrix.test-framework-command }} --filter "TestCategory != Integration & TestCategory != ${{ matrix.tests-exclude-category }}" --verbosity normal | |
| - name: Create Packages | |
| run: dotnet pack ${{ matrix.solution }} --no-build -c Release -o ./publish | |
| - name: Create Source Packages | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| shell: pwsh | |
| working-directory: . | |
| run: ./MakeSourcePackages.ps1 | |
| - name: Create packages artifact | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: Packages | |
| path: ./src/publish/ |