Skip to content

Commit 7e772e6

Browse files
committed
attempt to fix native build/test in cloud integration tests in CI
1 parent 32e627a commit 7e772e6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/cloud.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,31 @@ jobs:
5959
matrix:
6060
node-version: [ 20.x ]
6161
db: [ 'athena', 'bigquery', 'snowflake' ]
62+
target: [ "x86_64-unknown-linux-gnu" ]
6263
fail-fast: false
6364

6465
steps:
6566
- name: Checkout
6667
uses: actions/checkout@v4
68+
- name: Install Rust
69+
uses: actions-rust-lang/setup-rust-toolchain@v1
70+
with:
71+
toolchain: nightly-2024-07-15
72+
# override: true # this is by default on
73+
rustflags: ""
74+
components: rustfmt
75+
target: ${{ matrix.target }}
6776
- name: Install Node.js ${{ matrix.node-version }}
6877
uses: actions/setup-node@v4
6978
with:
7079
node-version: ${{ matrix.node-version }}
80+
- name: Install cargo-cp-artifact
81+
run: npm install -g [email protected]
82+
- uses: Swatinem/rust-cache@v2
83+
with:
84+
workspaces: ./packages/cubejs-backend-native
85+
key: native-${{ runner.OS }}-${{ matrix.target }}
86+
shared-key: native-${{ runner.OS }}-${{ matrix.target }}
7187
- name: Get yarn cache directory path
7288
id: yarn-cache-dir-path
7389
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
@@ -87,6 +103,8 @@ jobs:
87103
run: yarn build
88104
- name: Lerna tsc
89105
run: yarn tsc
106+
- name: Build native (no python)
107+
run: cd packages/cubejs-backend-native && npm run native:build-release
90108
- name: Run Integration tests for ${{ matrix.db }} matrix
91109
timeout-minutes: 30
92110
env:

0 commit comments

Comments
 (0)