Skip to content

Commit

Permalink
Try caching torchlight
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWold authored Dec 13, 2024
1 parent c6f7435 commit fdd52ed
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,20 @@ jobs:

- name: Setup dotnet-script
run: ${{ env.DOTNET_INSTALL_DIR }}\dotnet tool install -g dotnet-script


- name: Cache Torchlight
id: cache-torchlight
uses: actions/cache@v3
with:
path: ./node_modules/@torchlight-api
key: ${{ runner.os }}-torchlight-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-torchlight-

- name: Setup node
uses: actions/setup-node@v2

- name: Setup torchlight
if: ${{ steps.cache-torchlight.outputs.cache-hit != 'true' }}
run: npm i @torchlight-api/torchlight-cli

- name: Set dotnet path
Expand All @@ -54,4 +63,3 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output

0 comments on commit fdd52ed

Please sign in to comment.