Skip to content

Commit

Permalink
ci: wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gumichocopengin8 committed Aug 10, 2023
1 parent c103449 commit 28f5742
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/webCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -42,7 +42,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions web/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"react/react-in-jsx-scope": "off",
"react/self-closing-comp": ["error"],
"react/display-name": "off", // TODO: remove this in the future
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"build": "npm run build:wasm && next build",
"build:wasm": "wasm-pack build src/web_assembly --target web --release",
"start": "next start -p $PORT",
"lint-app": "eslint './src/**/*.{ts,tsx}'",
Expand Down
4 changes: 4 additions & 0 deletions web/vercel-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -y
npm i
3 changes: 2 additions & 1 deletion web/vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"github": {
"silent": true
}
},
"installCommand": "bash vercel-install.sh"
}

0 comments on commit 28f5742

Please sign in to comment.