Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.16 KB

ios-key-cache-spm.md

File metadata and controls

26 lines (17 loc) · 1.16 KB

(iOS) Cache Swift Package Manager dependencies (Beta)

Description

Cache the resolved Swift package dependencies with the new key-based caching Steps, Save Cache and Restore Cache.

Instructions

  1. Add the Restore SPM Cache Step to the Workflow.
  2. Add one of the usual iOS build steps, such as Xcode Test for iOS.
  3. Add the Save SPM Cache Step.

Fine tune cache behaviour

The SPM specific cache steps use optimal cache key and path configurations maintained by Bitrise. If you want full control over what should be cached then please check out the generic Restore Cache and Save Cache Steps.

You can always check out what key and path settings the SPM cache step uses: Github code snippet

bitrise.yml

- restore-spm-cache@2: {}
- xcode-test@5: {}
- save-spm-cache@1: {}