Skip to content

Commit 54112ec

Browse files
committed
restore old build settings
1 parent 2857e75 commit 54112ec

3 files changed

Lines changed: 1 addition & 43 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,14 @@ on:
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

10-
concurrency:
11-
group: pages
12-
cancel-in-progress: false
13-
1410
jobs:
1511
build:
1612
name: Build Docusaurus
1713
runs-on: ubuntu-latest
18-
timeout-minutes: 60
1914
steps:
2015
- uses: nschloe/action-cached-lfs-checkout@v1
2116
with:
2217
fetch-depth: 0
23-
filter: blob:none
2418
submodules: true
2519
exclude: external/**
2620

@@ -32,40 +26,18 @@ jobs:
3226
- name: Install dependencies
3327
run: yarn install --frozen-lockfile
3428

35-
# Rspack persistent cache
36-
- name: Restore bundler cache
37-
uses: actions/cache@v4
38-
with:
39-
path: node_modules/.cache
40-
key: docusaurus-${{ runner.os }}-${{ hashFiles('yarn.lock', 'docusaurus.config.js') }}-${{ github.sha }}
41-
restore-keys: |
42-
docusaurus-${{ runner.os }}-${{ hashFiles('yarn.lock', 'docusaurus.config.js') }}-
43-
docusaurus-${{ runner.os }}-
44-
4529
- name: Preprocess API
4630
run: yarn preprocess-api
4731

4832
- name: Sync Crowdin
49-
timeout-minutes: 15
5033
env:
5134
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
5235
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
5336
run: yarn crowdin:sync
5437

5538
- name: Build website
56-
timeout-minutes: 40
57-
env:
58-
# Bound SSG worker memory
59-
DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY: 800000000
6039
run: yarn build
6140

62-
- name: Report resource usage
63-
if: always()
64-
run: |
65-
echo "--- memory ---"; free -h
66-
echo "--- disk ---"; df -h /
67-
echo "--- rspack cache ---"; du -sh node_modules/.cache 2>/dev/null || echo "none"
68-
6941
- name: Upload Build Artifact
7042
uses: actions/upload-pages-artifact@v3
7143
with:

.github/workflows/test-deploy.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ jobs:
1111
test-deploy:
1212
name: Test deployment
1313
runs-on: ubuntu-latest
14-
timeout-minutes: 30
1514
steps:
1615
- uses: nschloe/action-cached-lfs-checkout@v1
1716
with:
1817
fetch-depth: 0
19-
filter: blob:none
2018
submodules: true
2119
exclude: external/**
2220

@@ -28,15 +26,6 @@ jobs:
2826
- name: Install dependencies
2927
run: yarn install --frozen-lockfile
3028

31-
- name: Restore bundler cache
32-
uses: actions/cache@v4
33-
with:
34-
path: node_modules/.cache
35-
key: docusaurus-en-${{ runner.os }}-${{ hashFiles('yarn.lock', 'docusaurus.config.js') }}-${{ github.sha }}
36-
restore-keys: |
37-
docusaurus-en-${{ runner.os }}-${{ hashFiles('yarn.lock', 'docusaurus.config.js') }}-
38-
docusaurus-en-${{ runner.os }}-
39-
4029
- name: Preprocess API
4130
run: yarn preprocess-api
4231

docusaurus.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,7 @@ module.exports = {
255255
swcJsLoader: true,
256256
swcJsMinimizer: true,
257257
swcHtmlMinimizer: true,
258-
lightningCssMinimizer: true,
259-
rspackBundler: true,
260-
rspackPersistentCache: true,
261-
mdxCrossCompilerCache: true,
258+
ssgWorkerThreads: true,
262259
},
263260
},
264261
plugins: [

0 commit comments

Comments
 (0)