|
1 | 1 | name: Build Artifacts |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_call: |
5 | | - inputs: |
6 | | - build-configuration: |
7 | | - default: "Release" |
8 | | - required: false |
9 | | - type: string |
10 | | - mdix-version: |
11 | | - required: true |
12 | | - type: string |
13 | | - mdix-colors-version: |
14 | | - required: true |
15 | | - type: string |
16 | | - mdix-mahapps-version: |
17 | | - required: true |
18 | | - type: string |
| 4 | + workflow_call: |
| 5 | + inputs: |
| 6 | + build-configuration: |
| 7 | + default: "Release" |
| 8 | + required: false |
| 9 | + type: string |
| 10 | + mdix-version: |
| 11 | + required: true |
| 12 | + type: string |
| 13 | + mdix-colors-version: |
| 14 | + required: true |
| 15 | + type: string |
| 16 | + mdix-mahapps-version: |
| 17 | + required: true |
| 18 | + type: string |
19 | 19 |
|
20 | 20 | jobs: |
21 | | - build: |
22 | | - name: Build and Test |
23 | | - runs-on: windows-latest |
| 21 | + build: |
| 22 | + name: Build and Test |
| 23 | + runs-on: windows-latest |
24 | 24 |
|
25 | | - env: |
26 | | - solution: MaterialDesignToolkit.Full.sln |
| 25 | + env: |
| 26 | + solution: MaterialDesignToolkit.Full.slnx |
27 | 27 |
|
28 | | - steps: |
29 | | - - uses: actions/checkout@v6 |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v6 |
30 | 30 |
|
31 | | - - name: Setup .NET |
32 | | - uses: actions/setup-dotnet@v5 |
33 | | - with: |
34 | | - dotnet-version: | |
35 | | - 8.x |
36 | | - 9.x |
| 31 | + - name: Setup .NET |
| 32 | + uses: actions/setup-dotnet@v5 |
| 33 | + with: |
| 34 | + dotnet-version: | |
| 35 | + 8.x |
| 36 | + 9.x |
| 37 | + 10.x |
37 | 38 |
|
38 | | - - name: Restore dependencies |
39 | | - run: dotnet restore ${{ env.solution }} |
| 39 | + - name: Restore dependencies |
| 40 | + run: dotnet restore ${{ env.solution }} |
40 | 41 |
|
41 | | - - name: Build |
42 | | - run: dotnet build ${{ env.solution }} --configuration ${{ inputs.build-configuration }} --no-restore -p:Platform="Any CPU" -p:TreatWarningsAsErrors=True |
43 | | - env: |
44 | | - MDIXVersion: ${{ inputs.mdix-version }} |
45 | | - MDIXColorsVersion: ${{ inputs.mdix-colors-version }} |
46 | | - MDIXMahAppsVersion: ${{ inputs.mdix-mahapps-version }} |
| 42 | + - name: Build |
| 43 | + run: dotnet build ${{ env.solution }} --configuration ${{ inputs.build-configuration }} --no-restore -p:Platform="Any CPU" -p:TreatWarningsAsErrors=True |
| 44 | + env: |
| 45 | + MDIXVersion: ${{ inputs.mdix-version }} |
| 46 | + MDIXColorsVersion: ${{ inputs.mdix-colors-version }} |
| 47 | + MDIXMahAppsVersion: ${{ inputs.mdix-mahapps-version }} |
47 | 48 |
|
48 | | - - name: Test |
49 | | - timeout-minutes: 20 |
50 | | - run: dotnet test ${{ env.solution }} --configuration ${{ inputs.build-configuration }} --no-build --blame-crash --logger GitHubActions |
| 49 | + - name: Test |
| 50 | + timeout-minutes: 20 |
| 51 | + run: dotnet test ${{ env.solution }} --configuration ${{ inputs.build-configuration }} --no-build --blame-crash --logger GitHubActions |
51 | 52 |
|
52 | | - - name: Upload Screenshots |
53 | | - if: ${{ always() }} |
54 | | - uses: actions/upload-artifact@v6 |
55 | | - with: |
56 | | - name: Screenshots-${{ github.run_number }} |
57 | | - path: ${{ github.workspace }}\tests\MaterialDesignThemes.UITests\bin\${{ inputs.build-configuration }}\net9.0-windows\Screenshots |
58 | | - if-no-files-found: ignore |
| 53 | + - name: Upload Screenshots |
| 54 | + if: ${{ always() }} |
| 55 | + uses: actions/upload-artifact@v6 |
| 56 | + with: |
| 57 | + name: Screenshots-${{ github.run_number }} |
| 58 | + path: ${{ github.workspace }}\tests\MaterialDesignThemes.UITests\bin\${{ inputs.build-configuration }}\net9.0-windows\Screenshots |
| 59 | + if-no-files-found: ignore |
59 | 60 |
|
60 | | - - name: Build NuGets |
61 | | - run: .\build\BuildNugets.ps1 -MDIXVersion ${{ inputs.mdix-version }} -MDIXColorsVersion ${{ inputs.mdix-colors-version }} -MDIXMahAppsVersion ${{ inputs.mdix-mahapps-version }} |
| 61 | + - name: Build NuGets |
| 62 | + run: .\build\BuildNugets.ps1 -MDIXVersion ${{ inputs.mdix-version }} -MDIXColorsVersion ${{ inputs.mdix-colors-version }} -MDIXMahAppsVersion ${{ inputs.mdix-mahapps-version }} |
62 | 63 |
|
63 | | - - name: Upload NuGets |
64 | | - uses: actions/upload-artifact@v6 |
65 | | - with: |
66 | | - name: NuGets |
67 | | - path: "*.nupkg" |
| 64 | + - name: Upload NuGets |
| 65 | + uses: actions/upload-artifact@v6 |
| 66 | + with: |
| 67 | + name: NuGets |
| 68 | + path: "*.nupkg" |
68 | 69 |
|
69 | | - - name: Upload Demo App |
70 | | - uses: actions/upload-artifact@v6 |
71 | | - with: |
72 | | - name: DemoApp |
73 | | - path: "src/MainDemo.Wpf/bin/${{ env.buildConfiguration }}" |
| 70 | + - name: Upload Demo App |
| 71 | + uses: actions/upload-artifact@v6 |
| 72 | + with: |
| 73 | + name: DemoApp |
| 74 | + path: "src/MainDemo.Wpf/bin/${{ env.buildConfiguration }}" |
0 commit comments