4747 timeout-minutes : 60
4848 name : Build Linux Native backend for Dev image
4949 container :
50- image : cubejs/rust-cross:x86_64-unknown-linux-gnu-15082024-python-3.9
50+ image : cubejs/rust-cross:x86_64-unknown-linux-gnu-15082024-python-3.11
5151
5252 steps :
5353 - name : Checkout
@@ -79,14 +79,14 @@ jobs:
7979 run :
npm install -g [email protected] 8080 - name : Build native (with Python)
8181 env :
82- PYO3_PYTHON : python3.9
82+ PYO3_PYTHON : python3.11
8383 CARGO_BUILD_TARGET : x86_64-unknown-linux-gnu
8484 working-directory : ./packages/cubejs-backend-native
8585 run : yarn run native:build-debug-python
8686 - name : Store build artifact for dev image
8787 uses : actions/upload-artifact@v4
8888 with :
89- name : " native-linux-x64-glibc-3.9 .node" # this name is referenced below in docker-image-dev
89+ name : " native-linux-x64-glibc-3.11 .node" # this name is referenced below in docker-image-dev
9090 path : ./packages/cubejs-backend-native/index.node
9191 overwrite : true
9292
@@ -101,7 +101,7 @@ jobs:
101101 - name : Download backend-native artifact
102102 uses : actions/download-artifact@v4
103103 with :
104- name : " native-linux-x64-glibc-3.9 .node" # this name is referenced in above in native_linux
104+ name : " native-linux-x64-glibc-3.11 .node" # this name is referenced in above in native_linux
105105 path : ./packages/cubejs-backend-native/
106106 - name : Login to DockerHub
107107 uses : docker/login-action@v3
@@ -110,6 +110,11 @@ jobs:
110110 password : ${{ secrets.DOCKERHUB_TOKEN }}
111111 - name : Set up QEMU
112112 uses : docker/setup-qemu-action@v3
113+ # current .dockerignore prevents use of native build
114+ - name : Unignore native from .dockerignore
115+ run : |
116+ grep -v -E "packages/cubejs-backend-native/((native)|(index.node))" .dockerignore > .dockerignore.tmp
117+ mv .dockerignore.tmp .dockerignore
113118 - name : Push to Docker Hub
114119 uses : docker/build-push-action@v6
115120 with :
0 commit comments