Explorar el Código

Update dotnet-desktop.yml

Marcin Ziąbek hace 1 año
padre
commit
495abcebf5
Se han modificado 1 ficheros con 16 adiciones y 4 borrados
  1. 16 4
      .github/workflows/dotnet-desktop.yml

+ 16 - 4
.github/workflows/dotnet-desktop.yml

@@ -37,6 +37,18 @@ jobs:
         uses: actions/checkout@v4
 
 
+      - name: Install Build Tools (Linux)
+        if: matrix.runtime.name == 'linux-x64' || matrix.runtime.name == 'linux-arm64'
+        shell: sh
+        run: apt install bash wget
+
+
+      - name: Install Build Tools (Alpine)
+        if: matrix.runtime.name == 'linux-musl-x64'
+        shell: sh
+        run: apk add bash wget
+
+
       - name: Setup dotnet
         uses: actions/setup-dotnet@v3
         with:
@@ -49,10 +61,10 @@ jobs:
         env:
           TEST_SHOW_RESULTS: false
         run: |
-          dotnet build -c Release --property WarningLevel=0
-          dotnet test QuestPDF.UnitTests --runtime ${{ matrix.runtime.name }}
-          dotnet test QuestPDF.LayoutTests --runtime ${{ matrix.runtime.name }}
-          # dotnet test QuestPDF.Examples --runtime ${{ matrix.runtime.name }}
+          dotnet build --configuration Release --property WarningLevel=0
+          dotnet test QuestPDF.UnitTests --configuration Release --runtime ${{ matrix.runtime.name }}
+          dotnet test QuestPDF.LayoutTests --configuration Release --runtime ${{ matrix.runtime.name }}
+          # dotnet test QuestPDF.Examples --configuration Release --runtime ${{ matrix.runtime.name }}
 
         
       - name: Upload build artifacts