Skip to content

Commit 306845c

Browse files
authored
Include static XCFramework in GitHub iOS release (#3974)
1 parent 5409730 commit 306845c

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/ios-ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ jobs:
261261
262262
- name: Build XCFramework (Static)
263263
# for now, just build it TODO: make a static framework release
264-
run: bazel build //platform/ios:MapLibre.static --//:renderer=metal --compilation_mode="opt" --copt -g --copt="-Oz" --strip never --output_groups=+dsyms --apple_generate_dsym
264+
run: |
265+
bazel build //platform/ios:MapLibre.static --//:renderer=metal --compilation_mode="opt" --copt -g --copt="-Oz" --strip never --output_groups=+dsyms --apple_generate_dsym
266+
echo xcframework_static="$(bazel info execution_root)"/"$(bazel cquery --output=files --compilation_mode=opt --//:renderer=metal //platform/ios:MapLibre.static)" >> "$GITHUB_ENV"
265267
266268
- name: Create .zip with debug symbols
267269
if: env.make_release
@@ -317,8 +319,11 @@ jobs:
317319
if: env.make_release
318320
run: |
319321
cp ${{ env.xcframework }} MapLibre.dynamic.xcframework.zip
322+
cp ${{ env.xcframework_static }} MapLibre.static.xcframework.zip
320323
chmod +w MapLibre.dynamic.xcframework.zip
324+
chmod +w MapLibre.static.xcframework.zip
321325
zip MapLibre.dynamic.xcframework.zip LICENSE.md # add license to zip
326+
zip MapLibre.static.xcframework.zip LICENSE.md # add license to zip
322327
working-directory: .
323328

324329
- name: Release (GitHub) - Create Draft
@@ -329,6 +334,7 @@ jobs:
329334
name: ios-v${{ env.version }}
330335
files: |
331336
MapLibre.dynamic.xcframework.zip
337+
MapLibre.static.xcframework.zip
332338
${{ env.debug_symbols_ios }}
333339
tag_name: ios-v${{ env.version }}
334340
prerelease: ${{ github.event.inputs.release == 'pre' }}
@@ -360,7 +366,7 @@ jobs:
360366
-d '{"ref":"main","inputs":{
361367
"changelog_url": "https://maplibre-native.s3.eu-central-1.amazonaws.com/changelogs/ios-${{ env.version }}.md",
362368
"version":"${{ env.version }}",
363-
"download_url": "https://github.com/maplibre/maplibre-native/releases/download/ios-v${{ env.version }}/MapLibre.dynamic.xcframework.zip"'
369+
"download_url": "https://github.com/maplibre/maplibre-native/releases/download/ios-v${{ env.version }}/MapLibre.dynamic.xcframework.zip"}}'
364370
365371
- run: npm install
366372
working-directory: .

platform/ios/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
MapLibre welcomes participation and contributions from everyone. Please read [`MapLibre iOS Developer Guide`](https://maplibre.org/maplibre-native/docs/book/ios/index.html) to get started.
44

5-
# 6.21.0
5+
## 6.21.1
6+
7+
- Include static XCFramework in GitHub release.
8+
9+
## 6.21.0
610

711
- Allow setting frustum offset to not render edges of the screen ([#3676](https://github.com/maplibre/maplibre-native/pull/3676)).
812
- Support hiding attribution on iOS ([#3952](https://github.com/maplibre/maplibre-native/pull/3952)).

platform/ios/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.21.0
1+
6.21.1

0 commit comments

Comments
 (0)