|
41 | 41 |
|
42 | 42 | env: |
43 | 43 | CUBEJS_TESSERACT_ORCHESTRATOR: true |
| 44 | + # Current user version for Python. Should be aligned between build-native & docker-dev |
| 45 | + PYTHON_VERSION_CURRENT: 3.11 |
44 | 46 |
|
45 | 47 | jobs: |
46 | 48 | unit: |
@@ -303,7 +305,7 @@ jobs: |
303 | 305 | timeout-minutes: 60 |
304 | 306 | name: Build Linux Native backend for Dev image |
305 | 307 | container: |
306 | | - image: cubejs/rust-cross:x86_64-unknown-linux-gnu-15082024-python-3.11 |
| 308 | + image: cubejs/rust-cross:x86_64-unknown-linux-gnu-15082024-python-${{ env.PYTHON_VERSION_CURRENT }} |
307 | 309 |
|
308 | 310 | steps: |
309 | 311 | - name: Checkout |
@@ -335,14 +337,14 @@ jobs: |
335 | 337 | run: npm install -g [email protected] |
336 | 338 | - name: Build native (with Python) |
337 | 339 | env: |
338 | | - PYO3_PYTHON: python3.11 |
| 340 | + PYO3_PYTHON: python${{ env.PYTHON_VERSION_CURRENT }} |
339 | 341 | CARGO_BUILD_TARGET: x86_64-unknown-linux-gnu |
340 | 342 | working-directory: ./packages/cubejs-backend-native |
341 | 343 | run: yarn run native:build-release-python |
342 | 344 | - name: Store build artifact for dev image |
343 | 345 | uses: actions/upload-artifact@v4 |
344 | 346 | with: |
345 | | - name: "native-linux-x64-glibc-3.11.node" |
| 347 | + name: "native-linux-x64-glibc-${{ env.PYTHON_VERSION_CURRENT }}.node" |
346 | 348 | path: ./packages/cubejs-backend-native/index.node |
347 | 349 | overwrite: true |
348 | 350 |
|
@@ -379,7 +381,7 @@ jobs: |
379 | 381 | - name: Download backend-native artifact |
380 | 382 | uses: actions/download-artifact@v4 |
381 | 383 | with: |
382 | | - name: "native-linux-x64-glibc-${{ matrix.python-version }}.node" # this name is referenced in above in native_linux |
| 384 | + name: "native-linux-x64-glibc-${{ env.PYTHON_VERSION_CURRENT }}.node" # this name is referenced in above in native_linux |
383 | 385 | path: ./packages/cubejs-backend-native/ |
384 | 386 | - name: Install Node.js ${{ matrix.node-version }} |
385 | 387 | uses: actions/setup-node@v4 |
@@ -451,7 +453,7 @@ jobs: |
451 | 453 | - name: Download backend-native artifact |
452 | 454 | uses: actions/download-artifact@v4 |
453 | 455 | with: |
454 | | - name: "native-linux-x64-glibc-3.11.node" # this name is referenced in above in native_linux |
| 456 | + name: "native-linux-x64-glibc-${{ env.PYTHON_VERSION_CURRENT }}.node" # this name is referenced in above in native_linux |
455 | 457 | path: ./packages/cubejs-backend-native/ |
456 | 458 | - name: Install Rust |
457 | 459 | uses: actions-rust-lang/setup-rust-toolchain@v1 |
@@ -683,7 +685,7 @@ jobs: |
683 | 685 | - name: Download backend-native artifact |
684 | 686 | uses: actions/download-artifact@v4 |
685 | 687 | with: |
686 | | - name: "native-linux-x64-glibc-${{ matrix.python-version }}.node" # this name is referenced in above in native_linux |
| 688 | + name: "native-linux-x64-glibc-${{ env.PYTHON_VERSION_CURRENT }}.node" # this name is referenced in above in native_linux |
687 | 689 | path: ./packages/cubejs-backend-native/ |
688 | 690 | - name: Install Node.js ${{ matrix.node-version }} |
689 | 691 | uses: actions/setup-node@v4 |
|
0 commit comments