|
98 | 98 | cloned_source_packages_path: ~/Library/Developer/Xcode/DerivedData/Amplify
|
99 | 99 | derived_data_path: ${{ github.workspace }}/Build
|
100 | 100 | disable_package_resolution: true
|
101 |
| - test_without_building: true |
| 101 | + # Only test without building when this exact SHA was cached or we did not restore the build from main. |
| 102 | + test_without_building: ${{ steps.restore-build.outputs.cache-hit || !steps.restore-main-build.outputs.cache-hit }} |
102 | 103 | other_flags: ${{ inputs.other_flags }}
|
103 | 104 | - name: Save the SHA build cache for re-runs
|
104 | 105 | if: failure() && steps.retry-tests.outcome=='failure'
|
@@ -201,7 +202,8 @@ jobs:
|
201 | 202 | cloned_source_packages_path: ~/Library/Developer/Xcode/DerivedData/Amplify
|
202 | 203 | derived_data_path: ${{ github.workspace }}/Build
|
203 | 204 | disable_package_resolution: true
|
204 |
| - test_without_building: true |
| 205 | + # Only test without building when this exact SHA was cached or we did not restore the build from main. |
| 206 | + test_without_building: ${{ steps.restore-build.outputs.cache-hit || !steps.restore-main-build.outputs.cache-hit }} |
205 | 207 | other_flags: ${{ inputs.other_flags }}
|
206 | 208 | - name: Save the SHA build cache for re-runs
|
207 | 209 | if: failure() && steps.retry-tests.outcome=='failure'
|
@@ -295,7 +297,8 @@ jobs:
|
295 | 297 | cloned_source_packages_path: ~/Library/Developer/Xcode/DerivedData/Amplify
|
296 | 298 | derived_data_path: ${{ github.workspace }}/Build
|
297 | 299 | disable_package_resolution: true
|
298 |
| - test_without_building: true |
| 300 | + # Only test without building when this exact SHA was cached or we did not restore the build from main. |
| 301 | + test_without_building: ${{ steps.restore-build.outputs.cache-hit || !steps.restore-main-build.outputs.cache-hit }} |
299 | 302 | other_flags: ${{ inputs.other_flags }}
|
300 | 303 | - name: Save the SHA build cache for re-runs
|
301 | 304 | if: failure() && steps.retry-tests.outcome=='failure'
|
@@ -389,7 +392,8 @@ jobs:
|
389 | 392 | cloned_source_packages_path: ~/Library/Developer/Xcode/DerivedData/Amplify
|
390 | 393 | derived_data_path: ${{ github.workspace }}/Build
|
391 | 394 | disable_package_resolution: true
|
392 |
| - test_without_building: true |
| 395 | + # Only test without building when this exact SHA was cached or we did not restore the build from main. |
| 396 | + test_without_building: ${{ steps.restore-build.outputs.cache-hit || !steps.restore-main-build.outputs.cache-hit }} |
393 | 397 | other_flags: ${{ inputs.other_flags }}
|
394 | 398 | - name: Save the SHA build cache for re-runs
|
395 | 399 | if: failure() && steps.retry-tests.outcome=='failure'
|
|
0 commit comments