Skip to content

Commit ddf98fa

Browse files
committed
ci(build): add debug profile to CI workflow
Release ZIP is already packaged before debug runs, so no conflict. Debug binaries stay unstripped for meaningful stack traces.
1 parent 5151a83 commit ddf98fa

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,28 @@ jobs:
4141
with:
4242
ndk-version: r27c
4343

44-
- name: Build and package
44+
- name: Build release and package
4545
env:
4646
ANDROID_NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
4747
run: bash package.sh --no-bump
4848

49-
- name: Upload artifact
49+
- name: Upload release ZIP
5050
uses: actions/upload-artifact@v4
5151
with:
52-
name: TA_enhanced-${{ github.sha }}
52+
name: TA_enhanced-release-${{ github.sha }}
5353
path: release/*.zip
5454
retention-days: 30
55+
56+
- name: Build debug binaries
57+
env:
58+
ANDROID_NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
59+
run: bash rust/build.sh debug
60+
61+
- name: Upload debug binaries
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: TA_enhanced-debug-${{ github.sha }}
65+
path: |
66+
bin/arm64-v8a/ta-enhanced
67+
bin/armeabi-v7a/ta-enhanced
68+
retention-days: 30

rust/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ for abi in "${!ABI_TARGET[@]}"; do
128128
mkdir -p "$dst_dir"
129129
cp "$src" "$dst_dir/ta-enhanced"
130130

131-
if [ -n "$STRIP" ] && [ -x "$STRIP" ]; then
131+
if [ "$PROFILE" = "release" ] && [ -n "$STRIP" ] && [ -x "$STRIP" ]; then
132132
"$STRIP" "$dst_dir/ta-enhanced"
133133
fi
134134

0 commit comments

Comments
 (0)