Skip to content

Commit 8598f02

Browse files
committed
attempt to fix native build/test in docker-dev CI
1 parent ff8d884 commit 8598f02

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/push.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -567,17 +567,6 @@ jobs:
567567
df -h
568568
- name: Checkout
569569
uses: actions/checkout@v4
570-
- name: Set up QEMU
571-
uses: docker/setup-qemu-action@v3
572-
- name: Build image
573-
uses: docker/build-push-action@v6
574-
timeout-minutes: 30
575-
with:
576-
context: .
577-
file: ./packages/cubejs-docker/${{ matrix.dockerfile }}
578-
platforms: linux/amd64
579-
push: true
580-
tags: localhost:5000/cubejs/cube:${{ matrix.tag }}
581570
- name: Use Node.js 20.x
582571
uses: actions/setup-node@v4
583572
with:
@@ -605,12 +594,28 @@ jobs:
605594
retry_wait_seconds: 15
606595
timeout_minutes: 20
607596
command: yarn install --frozen-lockfile
608-
- name: Build native (no python)
609-
run: cd packages/cubejs-backend-native && npm run native:build-release
610597
- name: Build client
611598
run: yarn build
612599
- name: Lerna tsc
613600
run: yarn tsc
601+
- name: Build native (no python)
602+
run: cd packages/cubejs-backend-native && npm run native:build-release
603+
- name: Set up QEMU
604+
uses: docker/setup-qemu-action@v3
605+
# current .dockerignore prevents use of native build
606+
- name: Unignore native from .dockerignore
607+
run: |
608+
grep -v -E "packages/cubejs-backend-native/((native)|(index.node))" .dockerignore > .dockerignore.tmp
609+
mv .dockerignore.tmp .dockerignore
610+
- name: Build image
611+
uses: docker/build-push-action@v6
612+
timeout-minutes: 30
613+
with:
614+
context: .
615+
file: ./packages/cubejs-docker/${{ matrix.dockerfile }}
616+
platforms: linux/amd64
617+
push: true
618+
tags: localhost:5000/cubejs/cube:${{ matrix.tag }}
614619
- name: Testing CubeJS (container mode) via BirdBox
615620
run: |
616621
cd packages/cubejs-testing/

0 commit comments

Comments
 (0)