Add debug symbols to iOS GitHub release (#2234)

This commit is contained in:
Bart Louwers
2024-04-05 01:14:45 +02:00
committed by GitHub
parent f40a4abd86
commit 8fbbf6bc95

View File

@@ -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