mirror of
https://github.com/home-assistant/iOS.git
synced 2026-04-25 10:27:54 -05:00
Move size task into ci action (#2239)
<!-- Thank you for submitting a Pull Request and helping to improve Home Assistant. Please complete the following sections to help the processing and review of your changes. Please do not delete anything from this template. --> ## Summary <!-- Provide a brief summary of the changes you have made and most importantly what they aim to achieve --> ## Screenshots <!-- If this is a user-facing change not in the frontend, please include screenshots in light and dark mode. --> ## Link to pull request in Documentation repository <!-- Pull requests that add, change or remove functionality must have a corresponding pull request in the Companion App Documentation repository (https://github.com/home-assistant/companion.home-assistant). Please add the number of this pull request after the "#" --> Documentation: home-assistant/companion.home-assistant# ## Any other notes <!-- If there is any other information of note, like if this Pull Request is part of a bigger change, please include it here. -->
This commit is contained in:
@@ -9,10 +9,6 @@ HOMEASSISTANT_APP_STORE_CONNECT_TEAM_ID=
|
||||
# lokalise auth token and project id
|
||||
HOMEASSISTANT_LOKALIZE_TOKEN=
|
||||
HOMEASSISTANT_LOKALIZE_PROJECT_ID=
|
||||
# sentry auth token, organization and project
|
||||
SENTRY_AUTH_TOKEN=
|
||||
SENTRY_ORG=
|
||||
SENTRY_PROJECT=
|
||||
|
||||
# contents of the p8 file
|
||||
APP_STORE_CONNECT_API_KEY_KEY=
|
||||
|
||||
56
.github/workflows/ci.yml
vendored
56
.github/workflows/ci.yml
vendored
@@ -60,8 +60,6 @@ jobs:
|
||||
test:
|
||||
runs-on: macos-12
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.0.1.app/Contents/Developer
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -122,3 +120,57 @@ jobs:
|
||||
with:
|
||||
name: ios-simulator
|
||||
path: ~/Library/Developer/Xcode/DerivedData/HomeAssistant-*/Build/Products/Debug-iphonesimulator/*.app
|
||||
|
||||
size:
|
||||
runs-on: macos-12
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: "Cache: Pods"
|
||||
id: cache_pods
|
||||
with:
|
||||
path: |
|
||||
Pods
|
||||
Tools/MaterialDesignIcons.ttf
|
||||
Tools/MaterialDesignIcons.json
|
||||
key: >-
|
||||
${{ runner.os }}-pods-${{ env.DEVELOPER_DIR }}-
|
||||
${{ hashFiles('**/Gemfile.lock', '**/Podfile.lock', 'Tools/BuildMaterialDesignIconsFont.sh') }}
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: "Cache: Gems"
|
||||
id: cache_gems
|
||||
with:
|
||||
path: vendor/bundle
|
||||
key: >-
|
||||
${{ runner.os }}-gems-${{ env.ImageVersion }}-${{ env.DEVELOPER_DIR }}-${{ hashFiles('**/Gemfile.lock') }}
|
||||
|
||||
- name: Install Brews
|
||||
# right now, we don't need anything from brew for sizing, so save some time
|
||||
if: ${{ false }}
|
||||
run: brew bundle
|
||||
|
||||
- name: Install Gems
|
||||
if: steps.cache_gems.outputs.cache-hit != 'true'
|
||||
run: bundle install --jobs 4 --retry 3
|
||||
|
||||
- name: Install Pods Release
|
||||
if: steps.cache_pods.outputs.cache-hit != 'true'
|
||||
run: bundle exec pod install --repo-update
|
||||
|
||||
- name: Build app
|
||||
run: bundle exec fastlane ios size
|
||||
env:
|
||||
P12_KEY_IOS_APP_STORE: ${{ secrets.P12_KEY_IOS_APP_STORE }}
|
||||
P12_KEY_MAC_APP_STORE: ${{ secrets.P12_KEY_MAC_APP_STORE }}
|
||||
P12_KEY_MAC_DEVELOPER_ID: ${{ secrets.P12_KEY_MAC_DEVELOPER_ID }}
|
||||
P12_VALUE_IOS_APP_STORE: ${{ secrets.P12_VALUE_IOS_APP_STORE }}
|
||||
P12_VALUE_MAC_APP_STORE: ${{ secrets.P12_VALUE_MAC_APP_STORE }}
|
||||
P12_VALUE_MAC_DEVELOPER_ID: ${{ secrets.P12_VALUE_MAC_DEVELOPER_ID }}
|
||||
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_TOKEN }}
|
||||
EMERGE_REPO_NAME: ${{ github.repository }}
|
||||
EMERGE_PR_NUMBER: ${{ github.event.number }}
|
||||
EMERGE_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
EMERGE_BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
|
||||
4
.github/workflows/distribute.yml
vendored
4
.github/workflows/distribute.yml
vendored
@@ -51,10 +51,6 @@ jobs:
|
||||
EMERGE_REPO_NAME: ${{ github.repository }}
|
||||
EMERGE_SHA: ${{ github.sha }}
|
||||
EMERGE_BASE_SHA: ${{ github.event.before }}
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||
# hard-coded so it doesn't cause 'ios' to be *** everywhere in the logs
|
||||
SENTRY_PROJECT: ios
|
||||
|
||||
- name: Dump Version Information
|
||||
run: cat Configuration/Version.xcconfig
|
||||
|
||||
68
.github/workflows/size.yml
vendored
68
.github/workflows/size.yml
vendored
@@ -1,68 +0,0 @@
|
||||
name: Size build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.0.1.app/Contents/Developer
|
||||
FASTLANE_SKIP_UPDATE_CHECK: true
|
||||
FASTLANE_XCODE_LIST_TIMEOUT: 60
|
||||
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: TRUE
|
||||
BUNDLE_PATH: vendor/bundle
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: "Cache: Pods"
|
||||
id: cache_pods
|
||||
with:
|
||||
path: |
|
||||
Pods
|
||||
Tools/MaterialDesignIcons.ttf
|
||||
Tools/MaterialDesignIcons.json
|
||||
key: >-
|
||||
${{ runner.os }}-pods-${{ env.DEVELOPER_DIR }}-
|
||||
${{ hashFiles('**/Gemfile.lock', '**/Podfile.lock', 'Tools/BuildMaterialDesignIconsFont.sh') }}
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: "Cache: Gems"
|
||||
id: cache_gems
|
||||
with:
|
||||
path: vendor/bundle
|
||||
key: >-
|
||||
${{ runner.os }}-gems-${{ env.ImageVersion }}-${{ env.DEVELOPER_DIR }}-${{ hashFiles('**/Gemfile.lock') }}
|
||||
|
||||
- name: Install Brews
|
||||
# right now, we don't need anything from brew for sizing, so save some time
|
||||
if: ${{ false }}
|
||||
run: brew bundle
|
||||
|
||||
- name: Install Gems
|
||||
if: steps.cache_gems.outputs.cache-hit != 'true'
|
||||
run: bundle install --jobs 4 --retry 3
|
||||
|
||||
- name: Install Pods Release
|
||||
if: steps.cache_pods.outputs.cache-hit != 'true'
|
||||
run: bundle exec pod install --repo-update
|
||||
|
||||
- name: Build app
|
||||
run: bundle exec fastlane ios size
|
||||
env:
|
||||
P12_KEY_IOS_APP_STORE: ${{ secrets.P12_KEY_IOS_APP_STORE }}
|
||||
P12_KEY_MAC_APP_STORE: ${{ secrets.P12_KEY_MAC_APP_STORE }}
|
||||
P12_KEY_MAC_DEVELOPER_ID: ${{ secrets.P12_KEY_MAC_DEVELOPER_ID }}
|
||||
P12_VALUE_IOS_APP_STORE: ${{ secrets.P12_VALUE_IOS_APP_STORE }}
|
||||
P12_VALUE_MAC_APP_STORE: ${{ secrets.P12_VALUE_MAC_APP_STORE }}
|
||||
P12_VALUE_MAC_DEVELOPER_ID: ${{ secrets.P12_VALUE_MAC_DEVELOPER_ID }}
|
||||
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_TOKEN }}
|
||||
EMERGE_REPO_NAME: ${{ github.repository }}
|
||||
EMERGE_PR_NUMBER: ${{ github.event.number }}
|
||||
EMERGE_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
EMERGE_BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
# hard-coded so it doesn't cause 'ios' to be *** everywhere in the logs
|
||||
SENTRY_PROJECT: ios
|
||||
@@ -86,7 +86,6 @@ lane :update_dsyms do
|
||||
output_directory: directory
|
||||
)
|
||||
|
||||
upload_path_to_sentry(path: directory)
|
||||
FileUtils.rm_r directory
|
||||
end
|
||||
|
||||
@@ -461,14 +460,6 @@ private_lane :provisioning_profile_specifiers do |options|
|
||||
specifiers
|
||||
end
|
||||
|
||||
private_lane :upload_path_to_sentry do |options|
|
||||
sh('sentry-cli', 'upload-dif', options[:path])
|
||||
end
|
||||
|
||||
private_lane :upload_archive_to_sentry do
|
||||
sh('sentry-cli', 'upload-dif', lane_context[SharedValues::XCODEBUILD_ARCHIVE])
|
||||
end
|
||||
|
||||
private_lane :upload_binary_to_apple do |options|
|
||||
attempts = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user