Skip to content

Commit 2768ccc

Browse files
committed
fix(ci): use different deployment strategies per platform
- Linux: Framework-dependent deployment for Docker compatibility - macOS/Windows: Self-contained deployment without single-file packaging - Fixes CoreCLR initialization error (HRESULT: 0x80070008) on macOS - Removes PublishSingleFile which can cause runtime issues - Maintains platform-appropriate deployment strategies
1 parent e6bc3ee commit 2768ccc

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,23 @@ jobs:
130130

131131
- name: Build and publish
132132
run: |
133-
dotnet publish ${{ env.PROJECT_NAME }} \
134-
--configuration Release \
135-
--runtime ${{ matrix.runtime }} \
136-
--self-contained false \
137-
--output ./publish/${{ matrix.runtime }} \
138-
--verbosity minimal
133+
if [[ "${{ matrix.runtime }}" == linux-* ]]; then
134+
# Framework-dependent deployment for Docker (Linux)
135+
dotnet publish ${{ env.PROJECT_NAME }} \
136+
--configuration Release \
137+
--runtime ${{ matrix.runtime }} \
138+
--self-contained false \
139+
--output ./publish/${{ matrix.runtime }} \
140+
--verbosity minimal
141+
else
142+
# Self-contained deployment without single-file for other platforms
143+
dotnet publish ${{ env.PROJECT_NAME }} \
144+
--configuration Release \
145+
--runtime ${{ matrix.runtime }} \
146+
--self-contained true \
147+
--output ./publish/${{ matrix.runtime }} \
148+
--verbosity minimal
149+
fi
139150
140151
- name: Code sign macOS binaries
141152
if: startsWith(matrix.runtime, 'osx-')

0 commit comments

Comments
 (0)