Hi.
I want to cache mint.
The Cache is used in the same workflow, but not in a different workflow.
We are also caching other gems, which can be referenced across workflows.
Workflow
- Script
script@1:
inputs:
- content: |-
envman add --key BREW_MINT --value "$(brew --cellar)/mint"
envman add --key BREW_OPT_MINT --value "/usr/local/opt/mint"
envman add --key MINT_PATH --value "./mint/lib"
- Bitrise.io Cache:Push
cache-push@2:
inputs:
- cache_paths: |-
# CocoaPods
./Pods -> ./Podfile.lock
# Mint
$MINT_PATH
/usr/local/lib/mint
# gem
$GEM_CACHE_PATH -> ./.ruby-version
./vendor -> ./Gemfile.lock
# Homebrew
$BREW_MINT
$BREW_OPT_MINT
Logs
Can use cache
Installing gems...
on Bitrise...
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path 'vendor/bundle'`, and stop using this flag
Warning: the running version of Bundler (2.2.3) is older than the version that created the lockfile (2.3.7). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.3.7`.
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...............................................................................
Using rake 13.0.6
Using rexml 3.2.5
Using concurrent-ruby 1.1.9
Using minitest 5.15.0
Using zeitwerk 2.5.4
Using public_suffix 4.0.6
Using httpclient 2.8.3
Using json 2.6.1
......
Bootstraping Mint...
🌱 2 packages up to date
Can NOT use cache
nstalling gems...
on Bitrise...
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path 'vendor/bundle'`, and stop using this flag
Warning: the running version of Bundler (2.2.3) is older than the version that created the lockfile (2.3.7). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.3.7`.
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...............................................................................
Using rake 13.0.6
Using rexml 3.2.5
Using concurrent-ruby 1.1.9
Using minitest 5.15.0
Using zeitwerk 2.5.4
Using public_suffix 4.0.6
Using httpclient 2.8.3
Using json 2.6.1
......
Bootstraping Mint...
🌱 Cloning xcodegen 2.28.0
🌱 Resolving package
🌱 Building package
🌱 Copying resources for XcodeGen: SettingPresets ...
🌱 Installed xcodegen 2.28.0
🌱 Cloning SwiftLint 0.47.0
🌱 Resolving package
🌱 Building package
🌱 Installed SwiftLint 0.47.0
🌱 Installed 2/2 packages
Thank you.