I am trying to cache the SPM packages on GitHub Actions with cache action, I am following this example:
- uses: actions/cache@v2
with:
path: Myproject.xcworkspace/xcshareddata/swiftpm/Package.resolved
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
I feel like is not possible to use cache, when you add your SPM packages with Xcode
Did anyone have succeed adding cache to your project even managing SPM via Xcode? Or maybe something is wrong in my .yml file but unfortunately I could not make it work.