yutailang0119 / fastlane-plugin-xcresult_actions

MIT License
3 stars 1 forks source link

[summarize_xcresult_report] Cache .xcresult when test on GitHub Actions #1

Open yutailang0119 opened 4 years ago

yutailang0119 commented 4 years ago

Executing scan takes time, so test want to cache .xcresult . .xcresult is unchanged unless Xcode uses the change.

yutailang0119 commented 4 years ago

Specifications of macOS machines that can be used with GitHub Actions https://github.com/actions/virtual-environments/tree/master/images/macos

yutailang0119 commented 4 years ago

I can find Xcode metadata in version.plist from the Xcode path to use.

$ cat /Application/Xcode_11.5.app/Contents/version.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>BuildAliasOf</key>
    <string>IDEFrameworks</string>
    <key>BuildVersion</key>
    <string>62</string>
    <key>CFBundleShortVersionString</key>
    <string>11.5</string>
    <key>CFBundleVersion</key>
    <string>16139</string>
    <key>ProductBuildVersion</key>
    <string>11E608c</string>
    <key>ProjectName</key>
    <string>IDEFrameworks</string>
    <key>SourceVersion</key>
    <string>16139000000000000</string>
</dict>
</plist>

If I use ProductBuildVersion from this, it seems that Xcode can be uniquely identified.