-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #961 from bugsnag/release-v6.5.0
Release v6.5.0
- Loading branch information
Showing
82 changed files
with
2,437 additions
and
1,488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Dangerfile for reporting change of framework size | ||
|
||
# Formats a number with thousands separated by ',' | ||
def format_number(number) | ||
number.to_s.reverse.scan(/.{1,3}/).join(',').reverse | ||
end | ||
|
||
# The .size_after and .size_before files must be created prior to running this Dangerfile. | ||
size_after = File.read('.size_after').to_i | ||
size_before = File.read('.size_before').to_i | ||
|
||
markdown(" | ||
### Bugsnag.framework binary size | ||
| | iOS arm64 | | ||
|--------|-------------------------------------| | ||
| Before | #{format_number(size_before)} bytes | | ||
| After | #{format_number(size_after)} bytes | | ||
| Diff | #{sprintf("%+d", size_after - size_before)} | | ||
") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "Framework size" | ||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
name: iOS arm64 | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout base branch | ||
uses: actions/checkout@v1 | ||
with: | ||
ref: ${{ github.base_ref }} | ||
clean: false | ||
|
||
- name: Build framework | ||
run: | | ||
xcodebuild -project Bugsnag.xcodeproj -configuration Release -scheme Bugsnag-iOS -destination generic/platform=iOS -derivedDataPath DerivedData -quiet clean build VALID_ARCHS=arm64 | ||
eval $(stat -s DerivedData/Build/Products/Release-iphoneos/Bugsnag.framework/Bugsnag) | ||
echo $st_size > .size_before | ||
- name: Checkout PR branch | ||
uses: actions/checkout@v1 | ||
with: | ||
ref: ${{ github.ref }} | ||
clean: false | ||
|
||
- name: Build framework | ||
run: | | ||
xcodebuild -project Bugsnag.xcodeproj -configuration Release -scheme Bugsnag-iOS -destination generic/platform=iOS -derivedDataPath DerivedData -quiet clean build VALID_ARCHS=arm64 | ||
eval $(stat -s DerivedData/Build/Products/Release-iphoneos/Bugsnag.framework/Bugsnag) | ||
echo $st_size > .size_after | ||
- uses: actions/cache@v2 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Bundle install | ||
run: | | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- name: Danger | ||
run: bundle exec danger --dangerfile=.github/workflows/framework-size.danger | ||
env: | ||
# https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow | ||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.