@@ -5,16 +5,15 @@ 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.45
1414 EM_CACHE_FOLDER : ' emsdk-cache'
1515
1616jobs :
17-
1817 build :
1918 runs-on : ubuntu-latest
2019
@@ -23,43 +22,49 @@ jobs:
2322 node-version : [16.x]
2423
2524 steps :
26- - uses : actions/checkout@v3
27- - name : Use Node.js ${{ matrix.node-version }}
28- uses : actions/setup-node@v3
29- with :
30- node-version : ${{ matrix.node-version }}
31- cache : ' npm'
32-
33- # Install yarn dependencies.
34- - name : Get yarn cache directory path
35- id : yarn-cache-dir-path
36- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
37- - uses : actions/cache@v3
38- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
39- with :
40- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
41- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
42- restore-keys : |
43- ${{ runner.os }}-yarn-
44- - run : yarn install
25+ - uses : actions/checkout@v4
26+ with :
27+ submodules : ' recursive'
28+ - name : Use Node.js ${{ matrix.node-version }}
29+ uses : actions/setup-node@v3
30+ with :
31+ node-version : ${{ matrix.node-version }}
32+ cache : ' npm'
33+
34+ # Install yarn dependencies.
35+ - name : Get yarn cache directory path
36+ id : yarn-cache-dir-path
37+ run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
38+ - uses : actions/cache@v3
39+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
40+ with :
41+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
42+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43+ restore-keys : |
44+ ${{ runner.os }}-yarn-
45+ - run : yarn install
46+ - name : Rust Setup
47+ run : |
48+ rustup toolchain install nightly-2023-08-28-x86_64-unknown-linux-gnu
49+ rustup component add rust-src --toolchain nightly-2023-08-28-x86_64-unknown-linux-gnu
4550
46- - name : Test with checked-in WASM files
47- run : yarn test --reporters progress
51+ - name : Test with checked-in WASM files
52+ run : yarn test --reporters progress
4853
49- # Install EMSDK
50- - name : Setup Emscripten
51- id : cache-system-libraries
52- uses : actions/cache@v3
53- with :
54- path : ${{env.EM_CACHE_FOLDER}}
55- key : ${{env.EM_VERSION}}-${{ runner.os }}
56- - uses : mymindstorm/setup-emsdk@v12
57- with :
58- version : ${{env.EM_VERSION}}
59- actions-cache-folder : ${{env.EM_CACHE_FOLDER}}
60- - run : emcc -v
54+ # Install EMSDK
55+ - name : Setup Emscripten
56+ id : cache-system-libraries
57+ uses : actions/cache@v3
58+ with :
59+ path : ${{env.EM_CACHE_FOLDER}}
60+ key : ${{env.EM_VERSION}}-${{ runner.os }}
61+ - uses : mymindstorm/setup-emsdk@v12
62+ with :
63+ version : ${{env.EM_VERSION}}
64+ actions-cache-folder : ${{env.EM_CACHE_FOLDER}}
65+ - run : emcc -v
6166
62- - name : Test WASM build
63- run : |
64- make clean && make
65- yarn test --reporters progress
67+ - name : Test WASM build
68+ run : |
69+ make clean && make
70+ yarn test --reporters progress
0 commit comments