Skip to content

Commit cd94062

Browse files
committed
chore: use env variable
1 parent 9c6381e commit cd94062

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/push.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ on:
4141

4242
env:
4343
CUBEJS_TESSERACT_ORCHESTRATOR: true
44+
# Current user version for Python. Should be aligned between build-native & docker-dev
45+
PYTHON_VERSION_CURRENT: 3.11
4446

4547
jobs:
4648
unit:
@@ -303,7 +305,7 @@ jobs:
303305
timeout-minutes: 60
304306
name: Build Linux Native backend for Dev image
305307
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 }}
307309

308310
steps:
309311
- name: Checkout
@@ -335,14 +337,14 @@ jobs:
335337
run: npm install -g [email protected]
336338
- name: Build native (with Python)
337339
env:
338-
PYO3_PYTHON: python3.11
340+
PYO3_PYTHON: python${{ env.PYTHON_VERSION_CURRENT }}
339341
CARGO_BUILD_TARGET: x86_64-unknown-linux-gnu
340342
working-directory: ./packages/cubejs-backend-native
341343
run: yarn run native:build-release-python
342344
- name: Store build artifact for dev image
343345
uses: actions/upload-artifact@v4
344346
with:
345-
name: "native-linux-x64-glibc-3.11.node"
347+
name: "native-linux-x64-glibc-${{ env.PYTHON_VERSION_CURRENT }}.node"
346348
path: ./packages/cubejs-backend-native/index.node
347349
overwrite: true
348350

@@ -379,7 +381,7 @@ jobs:
379381
- name: Download backend-native artifact
380382
uses: actions/download-artifact@v4
381383
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
383385
path: ./packages/cubejs-backend-native/
384386
- name: Install Node.js ${{ matrix.node-version }}
385387
uses: actions/setup-node@v4
@@ -451,7 +453,7 @@ jobs:
451453
- name: Download backend-native artifact
452454
uses: actions/download-artifact@v4
453455
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
455457
path: ./packages/cubejs-backend-native/
456458
- name: Install Rust
457459
uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -683,7 +685,7 @@ jobs:
683685
- name: Download backend-native artifact
684686
uses: actions/download-artifact@v4
685687
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
687689
path: ./packages/cubejs-backend-native/
688690
- name: Install Node.js ${{ matrix.node-version }}
689691
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)