Skip to content

Commit

Permalink
chore: restore caching of custom tools (sdkman, flutter, etc) on …
Browse files Browse the repository at this point in the history
…nx agents
  • Loading branch information
tinesoft committed Dec 4, 2024
1 parent 6231f98 commit ac9ae81
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions .nx/workflows/agents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,32 @@ launch-templates:
paths: 'node_modules'
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: 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 ac9ae81

Please sign in to comment.