Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[build] add binary size logging to macOS nightlies
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Nov 10, 2016
1 parent 2566c55 commit 8bd59bb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
30 changes: 30 additions & 0 deletions platform/macos/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

trigger_map:
- pattern: nightly-release
workflow: nightly-release
- pattern: "*"
is_pull_request_allowed: true
workflow: primary
Expand Down Expand Up @@ -78,3 +80,31 @@ workflows:
failed'
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
nightly-release:
steps:
- script:
title: Install Dependencies
inputs:
- content: |-
#!/bin/bash
set -eu -o pipefail
brew install cmake
- is_debug: 'yes'
- script:
title: Configure AWS-CLI
inputs:
- content: |-
#!/bin/bash
apt-get install -y python-pip python-dev build-essential
pip install awscli
- script:
title: Build package
inputs:
- content: |-
#!/bin/bash
set -eu -o pipefail
export BUILDTYPE=Release
export SYMBOLS=NO
make xpackage
CLOUDWATCH=true platform/macos/scripts/metrics.sh
- is_debug: 'yes'
7 changes: 7 additions & 0 deletions platform/macos/scripts/metrics.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -e
set -o pipefail

# Track individual architectures
scripts/log_binary_size.sh "build/macos/pkg/Mapbox.framework/Versions/Current/Mapbox" "Platform=macOS,Arch=x86_64"

0 comments on commit 8bd59bb

Please sign in to comment.