Skip to content

Commit

Permalink
[github-actions] fixup for conditional builds
Browse files Browse the repository at this point in the history
  • Loading branch information
b4handjr authored Apr 24, 2024
1 parent 474be70 commit b5cf16e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ios_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b5cf16e

Please sign in to comment.