diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 459edab..d523387 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,15 +53,21 @@ jobs: - name: Locate app run: | - echo "=== DerivedData ===" - find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing in DerivedData" - echo "=== runner work ===" - find /Users/runner/work -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" || echo "nothing in runner/work" + echo "=== Xcode default DerivedData ===" + find ~/Library/Developer/Xcode/DerivedData -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing" + echo "=== RUNNER_TEMP ===" + find "$RUNNER_TEMP" -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing" + echo "=== runner home ===" + find /Users/runner -maxdepth 8 -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "Xcode.app" | grep -v "CoreSimulator" | grep -v "node_modules" | grep -v "Cellar" || echo "nothing" - name: Package IPA run: | - APP_PATH=$(find /Users/runner -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" | grep -v "Xcode.app" | grep -v "CoreSimulator" | grep -v "Cellar" | head -1) + APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | head -1) + if [ -z "$APP_PATH" ]; then + APP_PATH=$(find /Users/runner -maxdepth 8 -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "Xcode.app" | grep -v "CoreSimulator" | grep -v "node_modules" | grep -v "Cellar" | head -1) + fi echo "APP_PATH: $APP_PATH" + if [ -z "$APP_PATH" ]; then echo "ERROR: .app not found"; exit 1; fi mkdir -p Payload cp -r "$APP_PATH" Payload/ zip -qr burmalda-unsigned.ipa Payload