Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
feat: reimplement caching mechanism (#38)
Browse files Browse the repository at this point in the history
caching is now performed by calculating the hash of the executing command, it will be calculated per project being passed to the action and also saved to github's cache per project's target
create hasher and task-graph utils
deprecate distribution input
remove distribution from inputs interface
change cache saving to be per project target's hash
restore task's deps in case task cache is missing
  • Loading branch information
ronnetzer authored Mar 15, 2022
1 parent 2879c11 commit 53cd2c4
Show file tree
Hide file tree
Showing 51 changed files with 1,270 additions and 1,013 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
targets: build
maxDistribution: 1
args: '--exclude nx-distributed-task'
# debug: true
debug: true

e2e-execute:
name: E2E nx-distributed-task
Expand All @@ -100,9 +100,8 @@ jobs:
id: run
with:
target: build
distribution: 1
projects: 'nx-affected-matrix'
# debug: true
projects: 'nx-affected-matrix,nx-distributed-task'
debug: true

release:
name: Release version
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
args: ''

execute:
name: ${{ matrix.target }} (${{ matrix.distribution }})
name: ${{ matrix.target }}
if: ${{ fromJSON(needs.setup.outputs.hasChanges) }}
needs: [setup]
runs-on: ubuntu-latest
Expand All @@ -71,7 +71,6 @@ jobs:
with:
target: ${{ matrix.target }}
projects: ${{ matrix.projects }}
distribution: ${{ matrix.distribution }}
uploadOutputs: true
nxCloud: false
args: ''
Expand Down
Loading

0 comments on commit 53cd2c4

Please sign in to comment.