mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
chore(build): try to fix caching
This commit is contained in:
parent
53358cbc34
commit
fd3d8f7484
1
.github/workflows/backend_build.yml
vendored
1
.github/workflows/backend_build.yml
vendored
@ -35,6 +35,7 @@ jobs:
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
cache: 'maven'
|
||||
|
||||
- name: Cache Maven Deps
|
||||
uses: actions/cache@v3
|
||||
|
21
.github/workflows/deploy.yml
vendored
21
.github/workflows/deploy.yml
vendored
@ -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
|
||||
|
14
.github/workflows/frontend_build.yml
vendored
14
.github/workflows/frontend_build.yml
vendored
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user