File tree Expand file tree Collapse file tree 3 files changed +13
-18
lines changed
Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 2323 - name : setup playwright for tests
2424 run : npx playwright install --with-deps && npx playwright install msedge && npx playwright install chrome
2525
26- - name : install wabt
27- run : sudo apt install wabt
28-
2926 - name : build, test and release sqlite-wasm
30- run : cd sqlite-wasm && npm i && npm run deploy
27+ run : cd sqlite-wasm && npm run deploy
3128 env :
3229 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1- setup () {
2- CPUS=1
3- if [ " $OS " = " Windows_NT" ]; then
4- CPUS=$( powershell -Command " [Environment]::ProcessorCount" )
1+ CPUS=1
2+ if [ " $OS " = " Windows_NT" ]; then
3+ CPUS=$( powershell -Command " [Environment]::ProcessorCount" )
4+ else
5+ if [ " $( uname -s | tr ' [:upper:]' ' [:lower:]' ) " = " darwin" ]; then
6+ CPUS=$( sysctl -n hw.ncpu)
7+ brew install wabt
58 else
6- if [ " $( uname -s | tr ' [:upper:]' ' [:lower:]' ) " = " darwin" ]; then
7- CPUS=$( sysctl -n hw.ncpu)
8- brew install wabt > /dev/null 2>&1
9- else
10- CPUS=$( nproc)
11- fi
9+ CPUS=$( nproc)
10+ sudo apt update && sudo apt install wabt
1211 fi
13- echo " $CPUS "
14- }
12+ fi
1513
1614git clean -fdX
1715
2927 grep -F " $line " " $makefile " > /dev/null 2>&1 || echo " $line " >> " $makefile "
3028done
3129
32- (cd modules/sqlite/ext/wasm && make -j$( setup ) dist sqlite3_wasm_extra_init.c=../../../../wasm.c)
30+ (cd modules/sqlite/ext/wasm && make -j$CPUS dist sqlite3_wasm_extra_init.c=../../../../wasm.c)
3331unzip modules/sqlite/ext/wasm/sqlite-wasm-* .zip -d tmp
3432mkdir -p sqlite-wasm/sqlite-wasm/jswasm
3533mv tmp/sqlite-wasm-* /jswasm sqlite-wasm/sqlite-wasm/.
Original file line number Diff line number Diff line change 4949 "start" : " npx http-server --coop" ,
5050 "test" : " npm run start & HTTP_SERVER_PID=$! && sleep 3 && node test/test.cjs && kill $HTTP_SERVER_PID" ,
5151 "fix" : " npx prettier . --write" ,
52- "prepare" : " npm run build && npm run fix && npm run publint && npm run check-types npm run test" ,
52+ "prepare" : " npm run build && npm i && npm run fix && npm run publint && npm run check-types npm run test" ,
5353 "deploy" : " npm run prepare && npm publish --access public --provenance"
5454 },
5555 "repository" : {
You can’t perform that action at this time.
0 commit comments