@@ -5,66 +5,71 @@ name: wa-sqlite CI
55
66on :
77 push :
8- branches : [" master" ]
8+ branches : [' master' ]
99 pull_request :
10- branches : [" master" ]
10+ branches : [' master' ]
1111
1212env :
1313 EM_VERSION : 3.1.64
14- EM_CACHE_FOLDER : " emsdk-cache"
14+ EM_CACHE_FOLDER : ' emsdk-cache'
1515
1616jobs :
1717 build :
1818 runs-on : ubuntu-latest
1919
2020 strategy :
2121 matrix :
22- node-version : [16 .x]
22+ node-version : [20 .x]
2323
2424 steps :
2525 - uses : actions/checkout@v4
26- with :
27- submodules : " recursive"
2826 - name : Use Node.js ${{ matrix.node-version }}
29- uses : actions/setup-node@v3
27+ uses : actions/setup-node@v4
3028 with :
3129 node-version : ${{ matrix.node-version }}
32- cache : " npm"
30+ cache : ' npm'
31+
32+ - uses : browser-actions/setup-chrome@v1
33+ id : setup-chrome
34+ with :
35+ chrome-version : 129
36+ - run : |
37+ ${{ steps.setup-chrome.outputs.chrome-path }} --version
3338
34- # Install yarn dependencies.
39+ # Install yarn dependencies.
3540 - name : Get yarn cache directory path
3641 id : yarn-cache-dir-path
3742 run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
38- - uses : actions/cache@v3
43+ - uses : actions/cache@v4
3944 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
4045 with :
4146 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
4247 key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
4348 restore-keys : |
4449 ${{ runner.os }}-yarn-
4550 - run : yarn install
46- - name : Rust Setup
47- run : |
48- rustup toolchain install nightly-2024-05-18-x86_64-unknown-linux-gnu
49- rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-unknown-linux-gnu
50-
5151 - name : Test with checked-in WASM files
52- run : yarn test --reporters progress
52+ run : yarn test
5353
5454 # Install EMSDK
5555 - name : Setup Emscripten
5656 id : cache-system-libraries
57- uses : actions/cache@v3
57+ uses : actions/cache@v4
5858 with :
5959 path : ${{env.EM_CACHE_FOLDER}}
6060 key : ${{env.EM_VERSION}}-${{ runner.os }}
61- - uses : mymindstorm/setup-emsdk@v12
61+ - uses : mymindstorm/setup-emsdk@v14
6262 with :
6363 version : ${{env.EM_VERSION}}
6464 actions-cache-folder : ${{env.EM_CACHE_FOLDER}}
6565 - run : emcc -v
6666
67+ # For some reason the Makefile fails to execute this with a "Permission denied"
68+ # error on Github actions. Doing this here prevents the error.
69+ - name : Download PowerSync Core
70+ run : node scripts/download-core-build.js
71+
6772 - name : Test WASM build
6873 run : |
6974 make clean && make
70- yarn test --reporters progress
75+ yarn test
0 commit comments