diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac9dfa37dc..c64f9d0db0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,6 +46,12 @@ jobs: distribution: 'zulu' java-version: ${{ matrix.java }} cache: 'maven' + - name: "Set up node cache" + uses: actions/cache@3.3.1 + 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" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e036eaa01a..2bb6cc477f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -61,6 +61,12 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + - name: "Set up node cache" + uses: actions/cache@3.3.1 + 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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 275f0ef6dc..3066b45e61 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,6 +39,12 @@ jobs: steps: - uses: actions/checkout@v3 + - name: "Set up node cache" + uses: actions/cache@3.3.1 + 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/setup-java@v3.11.0 with: