Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 3.13 KB

cache.md

File metadata and controls

56 lines (47 loc) · 3.13 KB

< 📍 Shortcuts

🏈 Cache

> rugby shortcuts cache --help
 > Run the build and use commands.

 Options:
╭────────────────────────────────────────────────────────────────────────────────╮
│ -s, --sdk                  * Build SDK: sim or ios.                            │
│ -a, --arch                 * Build architecture: auto, x86_64 or arm64.        │
│ -c, --config               * Build configuration. (Debug)                      │
│ --result-bundle-path       * Path for xcresult bundle.                         │
│ -t, --targets []           * Targets for building. Empty means all targets.    │
│ -g, --targets-as-regex []  * Targets for building as a RegEx pattern.          │
│ -e, --except []            * Exclude targets from building.                    │
│ -x, --except-as-regex []   * Exclude targets from building as a RegEx pattern. │
│ -o, --output               * Output mode: fold, multiline, silent, raw.        │
│ --warmup                   * Warmup cache with this endpoint.                  │
╰────────────────────────────────────────────────────────────────────────────────╯
 Flags:
╭─────────────────────────────────────────────────────────────────────────╮
│ --ignore-cache    * Ignore shared cache.                                │
│ --delete-sources  * Delete target groups from project.                  │
│ -r, --rollback    * Restore projects state before the last Rugby usage. │
│ --strip           * Build without debug symbols.                        │
│ -v, --verbose []  * Increase verbosity level.                           │
│ -q, --quiet []    * Decrease verbosity level.                           │
│ --prebuild        * Prebuild targets ignoring sources.                  │
│ -h, --help        * Show help information.                              │
╰─────────────────────────────────────────────────────────────────────────╯

Discussion

It just a combination of exist commands. You can call them separately:

> rugby rollback
> rugby build pre --except SomePod --arch x86_64
> rugby warmup s3.eu-west-2.amazonaws.com --except SomePod --arch x86_64
> rugby build full --except SomePod --arch x86_64
> rugby use --except SomePod

Or just use cache shortcut:

> rugby cache --rollback --prebuild --warmup s3.eu-west-2.amazonaws.com --except SomePod --arch x86_64

When you use cache or plan commands Rugby tries to reuse project cache.
In huge projects it can save tens of seconds.