|
60 | 60 | test:
|
61 | 61 | runs-on: macos-12
|
62 | 62 | timeout-minutes: 60
|
63 |
| - env: |
64 |
| - DEVELOPER_DIR: /Applications/Xcode_14.0.1.app/Contents/Developer |
65 | 63 | steps:
|
66 | 64 | - uses: actions/checkout@v3
|
67 | 65 |
|
@@ -122,3 +120,57 @@ jobs:
|
122 | 120 | with:
|
123 | 121 | name: ios-simulator
|
124 | 122 | path: ~/Library/Developer/Xcode/DerivedData/HomeAssistant-*/Build/Products/Debug-iphonesimulator/*.app
|
| 123 | + |
| 124 | + size: |
| 125 | + runs-on: macos-12 |
| 126 | + timeout-minutes: 60 |
| 127 | + steps: |
| 128 | + - uses: actions/checkout@v3 |
| 129 | + |
| 130 | + - uses: actions/cache@v3 |
| 131 | + name: "Cache: Pods" |
| 132 | + id: cache_pods |
| 133 | + with: |
| 134 | + path: | |
| 135 | + Pods |
| 136 | + Tools/MaterialDesignIcons.ttf |
| 137 | + Tools/MaterialDesignIcons.json |
| 138 | + key: >- |
| 139 | + ${{ runner.os }}-pods-${{ env.DEVELOPER_DIR }}- |
| 140 | + ${{ hashFiles('**/Gemfile.lock', '**/Podfile.lock', 'Tools/BuildMaterialDesignIconsFont.sh') }} |
| 141 | +
|
| 142 | + - uses: actions/cache@v3 |
| 143 | + name: "Cache: Gems" |
| 144 | + id: cache_gems |
| 145 | + with: |
| 146 | + path: vendor/bundle |
| 147 | + key: >- |
| 148 | + ${{ runner.os }}-gems-${{ env.ImageVersion }}-${{ env.DEVELOPER_DIR }}-${{ hashFiles('**/Gemfile.lock') }} |
| 149 | +
|
| 150 | + - name: Install Brews |
| 151 | + # right now, we don't need anything from brew for sizing, so save some time |
| 152 | + if: ${{ false }} |
| 153 | + run: brew bundle |
| 154 | + |
| 155 | + - name: Install Gems |
| 156 | + if: steps.cache_gems.outputs.cache-hit != 'true' |
| 157 | + run: bundle install --jobs 4 --retry 3 |
| 158 | + |
| 159 | + - name: Install Pods Release |
| 160 | + if: steps.cache_pods.outputs.cache-hit != 'true' |
| 161 | + run: bundle exec pod install --repo-update |
| 162 | + |
| 163 | + - name: Build app |
| 164 | + run: bundle exec fastlane ios size |
| 165 | + env: |
| 166 | + P12_KEY_IOS_APP_STORE: ${{ secrets.P12_KEY_IOS_APP_STORE }} |
| 167 | + P12_KEY_MAC_APP_STORE: ${{ secrets.P12_KEY_MAC_APP_STORE }} |
| 168 | + P12_KEY_MAC_DEVELOPER_ID: ${{ secrets.P12_KEY_MAC_DEVELOPER_ID }} |
| 169 | + P12_VALUE_IOS_APP_STORE: ${{ secrets.P12_VALUE_IOS_APP_STORE }} |
| 170 | + P12_VALUE_MAC_APP_STORE: ${{ secrets.P12_VALUE_MAC_APP_STORE }} |
| 171 | + P12_VALUE_MAC_DEVELOPER_ID: ${{ secrets.P12_VALUE_MAC_DEVELOPER_ID }} |
| 172 | + EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_TOKEN }} |
| 173 | + EMERGE_REPO_NAME: ${{ github.repository }} |
| 174 | + EMERGE_PR_NUMBER: ${{ github.event.number }} |
| 175 | + EMERGE_SHA: ${{ github.event.pull_request.head.sha }} |
| 176 | + EMERGE_BASE_SHA: ${{ github.event.pull_request.base.sha }} |
0 commit comments