Run iOS size test on CI through Bazel (#1122)

This commit is contained in:
Bart Louwers
2023-05-12 11:22:21 +02:00
committed by GitHub
parent 2dc560c589
commit 72a1f78647
9 changed files with 226 additions and 36 deletions

View File

@@ -114,11 +114,13 @@ jobs:
ccache --max-size=2G
ccache --show-stats
- name: Install iOS packaging dependencies
run: |
./platform/ios/scripts/install-packaging-dependencies.sh
- name: Save PR number
if: github.event_name == 'pull_request'
working-directory: ./
env:
CILAUNCH: true
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > ./pr_number
- name: Check debug symbols
run: make darwin-check-public-symbols
@@ -132,6 +134,24 @@ jobs:
- name: Running ios UI tests
run: make ios-uitest
# size test
- name: Build app for size test & output size
working-directory: ./
run: |
bazelisk build --compilation_mode=opt //platform/ios:size
cp $(bazel cquery --compilation_mode=opt --output=files //platform/ios:size) ./size
- name: Upload size test result
uses: actions/upload-artifact@v3
with:
name: size-test-result
path: |
./size
./pr_number
# ---
- name: Build and run SDK unit tests with thread and undefined behavior sanitizers
run: make ios-sanitize