Skip to content

Commit

Permalink
chore: disable cache restoration of tools installed outside the works…
Browse files Browse the repository at this point in the history
…pace
  • Loading branch information
tinesoft committed Aug 7, 2024
1 parent 168a273 commit 4b62013
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions .nx/workflows/agents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,34 @@ launch-templates:
paths: 'node_modules'
base-branch: 'develop'

- name: Restore Maven/Gradle/SDKMan Cache
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
inputs:
key: '"sdkman"|**/pom.xml|**/build.gradle|**/build.gradle.kts|**/settings.gradle|**/settings.gradle.kts'
paths: |
../.m2/repository
../.gradle/caches
../.sdkman
base-branch: 'develop'

- name: Restore Flutter Cache
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
inputs:
key: '"flutter-sdk"|**/pubspec.yaml'
paths: |
../flutter
../.pub-cache
base-branch: 'develop'

- name: Restore Android Cache
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
inputs:
key: '"android-sdk"'
paths: |
../android/sdk
base-branch: 'develop'
# Restoring files/folders outside the workspace is not currently supoprted by Nx Cloud...
#
# - name: Restore Maven/Gradle/SDKMan Cache
# uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
# inputs:
# key: '"sdkman"|**/pom.xml|**/build.gradle|**/build.gradle.kts|**/settings.gradle|**/settings.gradle.kts'
# paths: |
# ../.m2/repository
# ../.gradle/caches
# ../.sdkman
# base-branch: 'develop'

# - name: Restore Flutter Cache
# uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
# inputs:
# key: '"flutter-sdk"|**/pubspec.yaml'
# paths: |
# ../flutter
# ../.pub-cache
# base-branch: 'develop'

# - name: Restore Android Cache
# uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
# inputs:
# key: '"android-sdk"'
# paths: |
# ../android/sdk
# base-branch: 'develop'

- name: Install Node Modules
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/install-node-modules/main.yaml'
Expand Down

0 comments on commit 4b62013

Please sign in to comment.