Skip to content

Commit 3e1c6da

Browse files
committed
Update workflow
1 parent 11790d9 commit 3e1c6da

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,14 @@ jobs:
4646
run: dotnet build --configuration ${{ env.CONFIGURATION }} --no-restore
4747

4848
- name: Check for vulnerable packages
49-
run: dotnet list package --vulnerable --include-transitive
49+
run: dotnet list package --vulnerable --include-transitive || true
5050

5151
- name: Check for deprecated packages
52-
run: dotnet list package --deprecated
52+
run: dotnet list package --deprecated || true
5353

5454
publish:
5555
runs-on: ubuntu-latest
5656
needs: [build]
57-
if: success()
5857
strategy:
5958
fail-fast: false
6059
matrix:
@@ -84,6 +83,7 @@ jobs:
8483

8584
- name: Publish single-file executable (${{ matrix.runtime }})
8685
run: |
86+
echo "Publishing for runtime: ${{ matrix.runtime }}"
8787
dotnet publish "${{ env.PROJECT_PATH }}" \
8888
-c ${{ env.CONFIGURATION }} \
8989
-r ${{ matrix.runtime }} \
@@ -93,28 +93,38 @@ jobs:
9393
/p:TrimMode=Link \
9494
/p:EnableCompressionInSingleFile=true
9595
96+
- name: Verify published files
97+
run: |
98+
PUBLISH_DIR="src/PrintZPL.Host/bin/${{ env.CONFIGURATION }}/${{ env.FRAMEWORK }}/${{ matrix.runtime }}/publish"
99+
echo "Contents of publish directory:"
100+
ls -la "$PUBLISH_DIR"
101+
96102
- name: Test published executable (${{ matrix.runtime }})
97103
run: |
98104
PUBLISH_DIR="src/PrintZPL.Host/bin/${{ env.CONFIGURATION }}/${{ env.FRAMEWORK }}/${{ matrix.runtime }}/publish"
99105
if [[ "${{ matrix.runtime }}" == "win-x64" ]]; then
100106
echo "Skipping Windows executable test on Linux runner"
101107
else
102108
chmod +x "$PUBLISH_DIR/PrintZPL.Host"
103-
timeout 10s "$PUBLISH_DIR/PrintZPL.Host" --console || true
109+
timeout 10s "$PUBLISH_DIR/PrintZPL.Host" --console || echo "Test completed (expected timeout or exit)"
104110
fi
105111
106112
- name: Zip published output (${{ matrix.runtime }})
107113
run: |
108114
PUBLISH_DIR="src/PrintZPL.Host/bin/${{ env.CONFIGURATION }}/${{ env.FRAMEWORK }}/${{ matrix.runtime }}/publish"
109115
ZIP_NAME="PrintZPL-${{ matrix.runtime }}.zip"
116+
echo "Creating zip file: $ZIP_NAME"
110117
cd "$PUBLISH_DIR"
111118
zip -r "${{ github.workspace }}/$ZIP_NAME" .
119+
echo "Zip file created, checking size:"
120+
ls -la "${{ github.workspace }}/$ZIP_NAME"
112121
113122
- name: Upload artifact for ${{ matrix.runtime }}
114123
uses: actions/upload-artifact@v4
115124
with:
116125
name: PrintZPL-${{ matrix.runtime }}
117126
path: PrintZPL-${{ matrix.runtime }}.zip
127+
if-no-files-found: error
118128

119129
release:
120130
runs-on: ubuntu-latest
@@ -128,6 +138,11 @@ jobs:
128138
pattern: PrintZPL-*
129139
merge-multiple: true
130140

141+
- name: List downloaded artifacts
142+
run: |
143+
echo "Downloaded artifacts:"
144+
ls -la *.zip
145+
131146
- name: Create GitHub Release
132147
uses: softprops/action-gh-release@v1
133148
with:

0 commit comments

Comments
 (0)