From 8fbbf6bc952e2eac2994233d43986e7ddf9559e5 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Fri, 5 Apr 2024 01:14:45 +0200 Subject: [PATCH] Add debug symbols to iOS GitHub release (#2234) --- .github/workflows/ios-ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index a4b2dc274..a5360a3eb 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -209,8 +209,14 @@ jobs: - name: Build XCFramework run: | - bazel build --compilation_mode=opt --//:renderer=metal //platform/ios:MapLibre.dynamic --embed_label=maplibre_ios_"$(cat VERSION)" + bazel build --compilation_mode=opt --apple_generate_dsym --output_groups=+dsyms --//:renderer=metal //platform/ios:MapLibre.dynamic --embed_label=maplibre_ios_"$(cat VERSION)" echo xcframework="$(bazel info execution_root)"/"$(bazel cquery --output=files --compilation_mode=opt --//:renderer=metal //platform/ios:MapLibre.dynamic)" >> "$GITHUB_ENV" + + - name: Create .zip with debug symbols + working-directory: ./bazel-bin/platform/ios/MapLibre.dynamic_dsyms + run: | + zip MapLibre_ios_device.framework.dSYM.zip MapLibre_ios_device.framework.dSYM/Contents/Resources/DWARF/MapLibre_ios_device MapLibre_ios_device.framework.dSYM/Contents/Info.plist + echo debug_symbols_ios="$(realpath MapLibre_ios_device.framework.dSYM.zip)" >> "$GITHUB_ENV" - name: Get version (release) if: github.event.inputs.release == 'full' || steps.version-file-ios-changed.outputs.any_changed == 'true' @@ -254,7 +260,9 @@ jobs: uses: softprops/action-gh-release@v2 with: name: ios-v${{ env.version }} - files: MapLibre.dynamic.xcframework.zip + files: | + MapLibre.dynamic.xcframework.zip + ${{ env.debug_symbols_ios }} tag_name: ios-v${{ env.version }} prerelease: ${{ !github.event.inputs.release }} body_path: platform/ios/changelog_for_version.md