Skip to content

Commit b7b703c

Browse files
committed
ci (ci): simplify MAUI workload install logic in workflow
Removes explicit MAUI directory check and ensures workloads are restored via solution file. Streamlines build logic by relying on solution-based restoration.
1 parent 28d80c5 commit b7b703c

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
runs-on: ubuntu-latest
5555
needs: version
5656
outputs:
57-
has-maui: ${{ steps.check-maui.outputs.exists }}
5857
has-tests: ${{ steps.check-tests.outputs.exists }}
5958
has-docs: ${{ steps.check-docs.outputs.exists }}
6059
steps:
@@ -72,22 +71,12 @@ jobs:
7271
with:
7372
config-file: ${{ github.workspace }}/global.json
7473

75-
# ============================ MAUI ============================
76-
- name: '🔍 Check if Maui workloads are needed'
77-
id: check-maui
78-
run: |
79-
if [ -d "${{ github.workspace }}/${{ env.PROJECT_NAME }}.Maui" ]; then
80-
echo "exists=true" >> "$GITHUB_OUTPUT"
81-
else
82-
echo "exists=false" >> "$GITHUB_OUTPUT"
83-
fi
84-
85-
- name: '📲 Install .NET MAUI workloads'
74+
- name: '📲 Install .NET MAUI workloads if needed'
8675
uses: framinosona/github_actions/dotnet@main
87-
if: ${{ success() && !cancelled() && steps.check-maui.outputs.exists == 'true' }}
8876
with:
8977
command: workload
90-
arguments: install maui maui-android maui-ios maui-maccatalyst maui-windows
78+
path: ${{ github.workspace }}/${{ env.PROJECT_NAME }}.slnx
79+
arguments: restore
9180
show-summary: true
9281

9382
# ============================ BUILD ============================

0 commit comments

Comments
 (0)