ci: improve speed by caching brew install step and reading project settings from dumped xcodebuild -showProjectSettings instead of invoking each time.

This commit is contained in:
mahee96
2026-02-24 18:54:41 +05:30
parent 046d2788b9
commit b7085aaeca
4 changed files with 53 additions and 16 deletions

View File

@@ -23,7 +23,17 @@ jobs:
submodules: recursive
fetch-depth: 0
- run: brew install ldid xcbeautify
- uses: actions/cache@v4
with:
path: |
/opt/homebrew/Cellar
/opt/homebrew/Homebrew
/opt/homebrew/Library
~/Library/Caches/Homebrew
key: brew-${{ runner.os }}-ldid-xcbeautify-v1
- run: |
brew list ldid >/dev/null 2>&1 || brew install ldid
brew list xcbeautify >/dev/null 2>&1 || brew install xcbeautify
# --------------------------------------------------
# runtime env setup
@@ -176,8 +186,9 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PRODUCT_NAME=$(python3 scripts/ci/workflow.py get-product-name)
BUNDLE_ID=$(python3 scripts/ci/workflow.py get-bundle-id)
python3 scripts/ci/workflow.py dump-project-settings
PRODUCT_NAME=$(python3 scripts/ci/workflow.py read-product-name)
BUNDLE_ID=$(python3 scripts/ci/workflow.py read-bundle-id)
SOURCE_JSON="_includes/source.json"
IPA_NAME="$PRODUCT_NAME.ipa"