|
1 | | -name: Build Package |
2 | | - |
3 | | -on: push |
4 | | - |
5 | | -defaults: |
6 | | - run: |
7 | | - working-directory: src |
8 | | - |
9 | | -jobs: |
10 | | - build: |
11 | | - runs-on: ${{ matrix.os }} |
12 | | - strategy: |
13 | | - fail-fast: false |
14 | | - matrix: |
15 | | - os: [ubuntu-latest, windows-latest] |
16 | | - |
17 | | - steps: |
18 | | - - name: Code Checkout |
19 | | - uses: actions/checkout@v4.1.1 |
20 | | - |
21 | | - - name: Install DotNet |
22 | | - uses: actions/setup-dotnet@v4 |
23 | | - |
24 | | - - name: Restore Dependencies |
25 | | - run: dotnet restore |
26 | | - |
27 | | - - name: Build Package |
28 | | - run: dotnet build --no-restore -c Release |
29 | | - |
30 | | - - name: Perform Unit Testing |
31 | | - run: dotnet test --no-build -c Release --verbosity normal |
32 | | - |
33 | | - - name: Create Package |
34 | | - run: dotnet pack --no-build -c Release -o ./publish |
35 | | - |
36 | | - - name: Create packages artifact |
37 | | - if: ${{ matrix.os == 'windows-latest' }} |
38 | | - uses: actions/upload-artifact@v4 |
39 | | - with: |
40 | | - name: Packages |
41 | | - path: ./src/publish/ |
| 1 | +name: Build Package |
| 2 | + |
| 3 | +on: push |
| 4 | + |
| 5 | +defaults: |
| 6 | + run: |
| 7 | + working-directory: src |
| 8 | + |
| 9 | +jobs: |
| 10 | + build: |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + os: [ubuntu-latest, windows-latest] |
| 16 | + |
| 17 | + steps: |
| 18 | + - name: Code Checkout |
| 19 | + uses: actions/checkout@v6 |
| 20 | + |
| 21 | + - name: Install DotNet |
| 22 | + uses: actions/setup-dotnet@v5 |
| 23 | + with: |
| 24 | + dotnet-version: "10.0.x" |
| 25 | + |
| 26 | + - name: Restore Dependencies |
| 27 | + run: dotnet restore |
| 28 | + |
| 29 | + - name: Build Packages |
| 30 | + run: dotnet build --no-restore -c Release |
| 31 | + |
| 32 | + - name: Perform Unit Testing |
| 33 | + run: dotnet test --no-build -c Release --verbosity normal |
| 34 | + |
| 35 | + - name: Create Packages |
| 36 | + run: dotnet pack --no-build -c Release -o ./publish |
| 37 | + |
| 38 | + - name: Create packages artifact |
| 39 | + if: ${{ matrix.os == 'windows-latest' }} |
| 40 | + uses: actions/upload-artifact@v7 |
| 41 | + with: |
| 42 | + name: Packages |
| 43 | + path: ./src/publish/ |
0 commit comments