Skip to content

Commit

Permalink
update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Nov 4, 2023
1 parent 3d08919 commit da53d37
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm run build
4 changes: 2 additions & 2 deletions .github/workflows/pre-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: npm ci
- run: npm run build

Expand All @@ -47,7 +47,7 @@ jobs:
name: Chromium_Build_WithoutKatex_${{ steps.current-time.outputs.formattedTime }}
path: build/chromium-without-katex-and-tiktoken/*

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Firefox_Build_WithoutKatex_${{ steps.current-time.outputs.formattedTime }}
path: build/firefox-without-katex-and-tiktoken/*
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ jobs:
git commit -am "release v${{ env.VERSION }}"
git push
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: npm ci

- uses: actions/setup-python@v4
with:
python-version: '3.10' # for appdmg
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 14.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify-configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: npm ci
- run: npm run verify
14 changes: 7 additions & 7 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -298,18 +298,18 @@ function generateWebpackCallback(finishOutputFunc) {
async function build() {
await deleteOldDir()
if (isProduction && !isAnalyzing) {
await runWebpack(
true,
false,
generateWebpackCallback(() => finishOutput('-without-katex')),
)
await new Promise((r) => setTimeout(r, 5000))
// await runWebpack(
// true,
// false,
// generateWebpackCallback(() => finishOutput('-without-katex')),
// )
// await new Promise((r) => setTimeout(r, 5000))
await runWebpack(
true,
true,
generateWebpackCallback(() => finishOutput('-without-katex-and-tiktoken')),
)
await new Promise((r) => setTimeout(r, 5000))
await new Promise((r) => setTimeout(r, 10000))
}
await runWebpack(
false,
Expand Down

0 comments on commit da53d37

Please sign in to comment.