diff --git a/.github/workflows/ios_manual.yml b/.github/workflows/ios_manual.yml index 0371092..e5dced2 100644 --- a/.github/workflows/ios_manual.yml +++ b/.github/workflows/ios_manual.yml @@ -52,8 +52,16 @@ jobs: cd firefox-ios brew update pip3 install virtualenv pipenv + - name: Check if cache loaded correctly + id: check_cache + run: | + if [ -d /Users/runner/Library/Developer/Xcode/DerivedData/Client-*/ ]; then + echo "::set-output name=cache_loaded::true" + else + echo "::set-output name=cache_loaded::false" + fi - name: Build app - if: ${{ ! test /Users/runner/Library/Developer/Xcode/DerivedData/Client-*/ }} + if: steps.check_cache.outputs.cache_loaded == 'false' run: | cd firefox-ios xcodebuild build-for-testing -project Client.xcodeproj -scheme Fennec -configuration Fennec -sdk iphonesimulator -quiet -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2'