chore(build): try to fix caching

This commit is contained in:
MiniDigger | Martin 2023-04-22 20:33:26 +02:00
parent 53358cbc34
commit fd3d8f7484
4 changed files with 22 additions and 16 deletions

View File

@ -35,6 +35,7 @@ jobs:
with:
java-version: 17
distribution: temurin
cache: 'maven'
- name: Cache Maven Deps
uses: actions/cache@v3

View File

@ -44,6 +44,7 @@ jobs:
with:
java-version: 17
distribution: temurin
cache: 'maven'
- name: Set up Node
uses: actions/setup-node@v3
@ -53,23 +54,21 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Cache Maven Deps
uses: actions/cache@v3
with:
path: $GITHUB_WORKSPACE/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache pnpm
uses: actions/cache@v3
with:
path: "~/.pnpm-store"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
${{ runner.os }}-pnpm-store-
- name: Build backend
working-directory: backend

View File

@ -30,15 +30,21 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache Pnpm
uses: actions/cache@v3
with:
path: "~/.pnpm-store"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
${{ runner.os }}-pnpm-store-
- name: Install frontend deps
env:

View File

@ -198,7 +198,7 @@ hangar:
size: 256
mail:
from: noreply@mail.papermc.dev
from: Hangar <noreply@mail.papermc.dev>
user: dum
pass: dum
host: localhost