diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 5afe778..9eacfd7 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -22,7 +22,9 @@ jobs: path: | node_modules/.astro/ node_modules/.vite/ - key: ${{ runner.os }}-buildcache + key: ${{ runner.os }}-buildcache-${{ hashFiles('package-lock.json') }} + restore-keys: | + ${{ runner.os }}-buildcache- - name: Setup Node uses: actions/setup-node@v5 @@ -33,11 +35,15 @@ jobs: - name: Install shell: "bash" working-directory: . - run: npm install + run: npm ci - name: Build shell: "bash" working-directory: . + env: + # Bound libuv/sharp thread usage: the builder is small and + # full parallelism OOMs it. Raise if the host grows. + UV_THREADPOOLSIZE: 4 run: npm run build - name: Set up SSH diff --git a/src/components/Player.astro b/src/components/Player.astro index 46f774f..c3c9456 100644 --- a/src/components/Player.astro +++ b/src/components/Player.astro @@ -171,12 +171,14 @@ const playerArtworkOpacity = 0.4; -