Categorygithub.com/bitrise-steplib/bitrise-step-save-spm-cache
modulepackage
0.0.0-20240711072603-a166ea922d94
Repository: https://github.com/bitrise-steplib/bitrise-step-save-spm-cache.git
Documentation: pkg.go.dev

# README

Save SPM Cache

Step changelog

Saves Swift Package Manager dependency cache. This Step needs to be used in combination with Restore SPM Cache.

Description

Saves Swift Package Manager dependency cache. This Step needs to be used in combination with Restore SPM Cache.

This Step is based on key-based caching and sets up the cache key and path automatically for SPM dependencies. If you'd like to change the cache key (or paths to cache), you might want to use the generic Save cache Step instead.

Related steps

Restore SPM cache

Save cache

🧩 Get started

Add this step directly to your workflow in the Bitrise Workflow Editor.

You can also run this step directly with Bitrise CLI.

Examples

Check out Workflow Recipes for other platform-specific examples!

Minimal example

steps:
- restore-spm-cache@1: {}
- xcode-test@4: {}
- save-spm-cache@1: {}

⚙️ Configuration

Inputs
KeyDescriptionFlagsDefault
derived_data_pathPath of the project's Derived Data folder. Supports glob patterns.~/Library/Developer/Xcode/DerivedData/**
project_pathXcode Project (.xcodeproj) or Workspace (.xcworkspace) path. If this is a Swift package, this should be the path to the Package.swift file.$BITRISE_PROJECT_PATH
verboseEnable logging additional information for troubleshootingrequiredfalse
Outputs There are no outputs defined in this step

🙋 Contributing

We welcome pull requests and issues against this repository.

For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.

Note: this step's end-to-end tests (defined in e2e/bitrise.yml) are working with secrets which are intentionally not stored in this repo. External contributors won't be able to run those tests. Don't worry, if you open a PR with your contribution, we will help with running tests and make sure that they pass.

Learn more about developing steps:

# Packages

No description provided by the author