Skip to content

Commit 65a3777

Browse files
guoxpengclaude
andcommitted
ci: 增强构建诊断(mac 构建免证书探测 + 失败日志上传 + pipefail)
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent beaee88 commit 65a3777

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,18 @@ jobs:
5353
- name: Install Electron dependencies
5454
run: cd win && npm install
5555
- name: Build dmg + zip
56-
run: npm run desktop:mac
56+
env:
57+
# CI has no Apple certificates — never attempt identity discovery.
58+
CSC_IDENTITY_AUTO_DISCOVERY: false
59+
run: |
60+
set -o pipefail
61+
npm run desktop:mac 2>&1 | tee mac-build.log
62+
- name: Upload failure log
63+
if: failure()
64+
uses: actions/upload-artifact@v5
65+
with:
66+
name: macos-failure-log
67+
path: mac-build.log
5768
- name: Upload artifact
5869
uses: actions/upload-artifact@v5
5970
with:
@@ -91,8 +102,16 @@ jobs:
91102
android/gradle/wrapper/gradle-wrapper.properties
92103
- name: Build APK
93104
run: |
105+
set -o pipefail
94106
chmod +x android/gradlew
95-
cd android && ./gradlew assembleDebug --no-daemon
107+
cd android && ./gradlew assembleDebug --no-daemon --stacktrace --console=plain \
108+
-Dorg.gradle.jvmargs="-Xmx4g -XX:MaxMetaspaceSize=1g" 2>&1 | tee ../android-build.log
109+
- name: Upload failure log
110+
if: failure()
111+
uses: actions/upload-artifact@v5
112+
with:
113+
name: android-failure-log
114+
path: android-build.log
96115
- name: Rename artifact
97116
run: cp android/app/build/outputs/apk/debug/app-debug.apk WebSSH-android.apk
98117
- name: Upload artifact

0 commit comments

Comments
 (0)