Skip to content

Commit

Permalink
Better caching of node as it is large and inclined to go wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
dkfellows committed Jul 20, 2023
1 parent bb686f4 commit a19a3fe
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ jobs:
distribution: 'zulu'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: "Set up node cache"
uses: actions/[email protected]
with:
path: '~/.m2/repository/com/github/eirslett/node'
key: ${{ runner.os }}-node-${{ hashFiles('SpiNNaker-allocserv/pom.xml') }}
restore-keys: ${{ runner.os }}-node-

- name: Compile
run: mvn clean install --settings $SETTINGS_FILE -B -DskipTests=true -Dmaven.javadoc.skip=true -P "!jsp-precompile"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: "Set up node cache"
uses: actions/[email protected]
with:
path: '~/.m2/repository/com/github/eirslett/node'
key: ${{ runner.os }}-node-${{ hashFiles('SpiNNaker-allocserv/pom.xml') }}
restore-keys: ${{ runner.os }}-node-

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: "Set up node cache"
uses: actions/[email protected]
with:
path: '~/.m2/repository/com/github/eirslett/node'
key: ${{ runner.os }}-node-${{ hashFiles('SpiNNaker-allocserv/pom.xml') }}
restore-keys: ${{ runner.os }}-node-
- name: Set up JDK ${{ matrix.java }}
uses: actions/[email protected]
with:
Expand Down

0 comments on commit a19a3fe

Please sign in to comment.