Skip to content

Commit

Permalink
👷 Cache Node.js
Browse files Browse the repository at this point in the history
Why:
- Previously, the CI downloaded Node.js on every build from
  https://nodejs.org/dist/v21.7.3/node-v21.7.3-linux-x64.tar.xz
  but nodejs.org is sometimes very slow. In the worst case, the binary
  is not found and nvm will attempt to compile Node.js from source.
  • Loading branch information
luontola committed Oct 4, 2024
1 parent 9668a20 commit dc95238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ blocks:
- name: Build
commands:
- cache restore
- cache restore nvm-$(checksum .tool-versions)
- cache restore m2-$SEMAPHORE_GIT_BRANCH-revision-$(checksum project.clj)
- cache restore lein-$SEMAPHORE_GIT_BRANCH-revision-$(checksum project.clj)
- sem-version java 17
Expand All @@ -33,6 +34,7 @@ blocks:
- docker push luontola/territory-bro:ci

- cache store
- cache store nvm-$(checksum .tool-versions) ~/.nvm/.cache
- cache store m2-$SEMAPHORE_GIT_BRANCH-revision-$(checksum project.clj) ~/.m2
- cache store lein-$SEMAPHORE_GIT_BRANCH-revision-$(checksum project.clj) ~/.lein/self-installs

Expand Down

0 comments on commit dc95238

Please sign in to comment.