File tree 1 file changed +10
-6
lines changed 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,22 @@ jobs:
23
23
with :
24
24
dotnet-version : ' 8.0.x' # .NET version
25
25
26
- - name : Install dependencies
26
+ - name : Install MAUI workloads
27
27
run : |
28
- dotnet restore # Restore project dependencies
29
-
28
+ dotnet workload install maui
29
+ dotnet workload install maui-android maui-ios maui-maccatalyst maui-windows
30
+
31
+ - name : Restore dependencies
32
+ run : dotnet restore
33
+
30
34
- name : Build project
31
35
run : |
32
- dotnet build --configuration Release --target ${{ matrix.platform }} --no-restore # Build project for target platform
36
+ dotnet build --configuration Release --framework ${{ matrix.platform }} --no-restore
33
37
34
38
- name : Publish for ${{ matrix.platform }}
35
39
run : |
36
- dotnet publish --configuration Release --output ./publish --target ${{ matrix.platform }} --no-restore # Publish the app for the selected platform
37
-
40
+ dotnet publish --configuration Release --framework ${{ matrix.platform }} --output ./publish -- no-restore
41
+
38
42
- name : Archive artifacts
39
43
if : success() # Archive the build artifacts
40
44
uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments