@@ -31,12 +31,12 @@ jobs:
3131 toolchain : nightly-2022-03-22
3232 override : true
3333 components : rustfmt, clippy
34- - uses : Swatinem/rust-cache@v1
34+ - uses : Swatinem/rust-cache@v2
3535 with :
36- working-directory : ./rust/cubesql
36+ workspaces : ./rust/cubesql -> target
3737 # default key
3838 key : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
39- sharedKey : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
39+ shared-key : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
4040 - name : Lint CubeSQL
4141 run : cd rust/cubesql/cubesql && cargo fmt --all -- --check
4242 - name : Lint Native
@@ -64,12 +64,12 @@ jobs:
6464 toolchain : nightly-2022-03-22
6565 override : true
6666 components : rustfmt
67- - uses : Swatinem/rust-cache@v1
67+ - uses : Swatinem/rust-cache@v2
6868 with :
69- working-directory : ./rust/cubesql
69+ workspaces : ./rust/cubesql -> target
7070 # default key
7171 key : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
72- sharedKey : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
72+ shared-key : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
73737474 uses : baptiste0928/cargo-install@v1
7575 with :
@@ -107,12 +107,12 @@ jobs:
107107 toolchain : nightly-2022-03-22
108108 override : true
109109 components : rustfmt
110- - uses : Swatinem/rust-cache@v1
110+ - uses : Swatinem/rust-cache@v2
111111 with :
112- working-directory : ./rust/cubesql
112+ workspaces : ./rust/cubesql -> target
113113 # default key
114114 key : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
115- sharedKey : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
115+ shared-key : cubesql-${{ runner.OS }}-x86_64-unknown-linux-gnu-16
116116 - name : Unit tests (Legacy Engine)
117117 env :
118118 CUBESQL_TESTING_CUBE_TOKEN : ${{ secrets.CUBESQL_TESTING_CUBE_TOKEN }}
@@ -151,11 +151,11 @@ jobs:
151151 override : true
152152 components : rustfmt
153153 target : ${{ matrix.target }}
154- - uses : Swatinem/rust-cache@v1
154+ - uses : Swatinem/rust-cache@v2
155155 with :
156- working-directory : ./rust/cubesql
156+ workspaces : ./rust/cubesql -> target
157157 key : cubesql-${{ runner.OS }}-${{ matrix.target }}-${{ matrix.node-version }}
158- sharedKey : cubesql-${{ runner.OS }}-${{ matrix.target }}-${{ matrix.node-version }}
158+ shared-key : cubesql-${{ runner.OS }}-${{ matrix.target }}-${{ matrix.node-version }}
159159 - name : Install Node.js ${{ matrix.node-version }}
160160 uses : actions/setup-node@v3
161161 with :
@@ -190,24 +190,28 @@ jobs:
190190 if : (matrix.python-version == 'fallback')
191191 env :
192192 CARGO_BUILD_TARGET : ${{ matrix.target }}
193- run : cd packages/cubejs-backend-native && yarn run native:build-debug
193+ working-directory : ./packages/cubejs-backend-native
194+ run : yarn run native:build-debug
194195 - name : Build native (with Python)
195196 if : (matrix.python-version != 'fallback')
196197 env :
197198 PYO3_PYTHON : python${{ matrix.python-version }}
198199 CARGO_BUILD_TARGET : ${{ matrix.target }}
199- run : cd packages/cubejs-backend-native && yarn run native:build-debug-python
200+ working-directory : ./packages/cubejs-backend-native
201+ run : yarn run native:build-debug-python
200202 - name : Test native (GNU only)
201203 if : (matrix.target == 'x86_64-unknown-linux-gnu')
202204 env :
203205 CUBESQL_STREAM_MODE : true
204206 CUBEJS_NATIVE_INTERNAL_DEBUG : true
205- run : cd packages/cubejs-backend-native && yarn run test:unit
207+ working-directory : ./packages/cubejs-backend-native
208+ run : yarn run test:unit
206209 - name : Run E2E Smoke testing over whole Cube (GNU only)
207210 if : (matrix.target == 'x86_64-unknown-linux-gnu')
208211 env :
209212 CUBEJS_NATIVE_INTERNAL_DEBUG : true
210- run : cd packages/cubejs-testing && yarn smoke:cubesql
213+ working-directory : ./packages/cubejs-testing
214+ run : yarn smoke:cubesql
211215
212216 native_macos :
213217 needs : [lint]
0 commit comments