8080 uses : actions/setup-node@v4
8181 with :
8282 node-version : ${{ matrix.node-version }}
83- - name : Install cargo-cp-artifact
84- run :
npm install -g [email protected] 85- - uses : Swatinem/rust-cache@v2
86- with :
87- workspaces : ./packages/cubejs-backend-native
88- key : native-${{ runner.OS }}-${{ matrix.target }}
89- shared-key : native-${{ runner.OS }}-${{ matrix.target }}
9083 - name : Get yarn cache directory path
9184 id : yarn-cache-dir-path
9285 run : echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
@@ -101,19 +94,37 @@ jobs:
10194 - name : Set Yarn version
10295 run : yarn policies set-version v1.22.22
10396 - name : Yarn install
104- run : CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile
105- - name : Build client
97+ uses : nick-fields/retry@v3
98+ env :
99+ CUBESTORE_SKIP_POST_INSTALL : true
100+ with :
101+ max_attempts : 3
102+ retry_on : error
103+ retry_wait_seconds : 15
104+ timeout_minutes : 20
105+ command : yarn install --frozen-lockfile
106+ - name : Build Core Client libraries
106107 run : yarn build
108+ - name : Build other packages
109+ run : yarn lerna run --concurrency 1 build
110+ env :
111+ NODE_OPTIONS : --max_old_space_size=4096
107112 - name : Lerna tsc
108113 run : yarn tsc
109- - name : Build native (no python)
110- run : cd packages/cubejs-backend-native && npm run native:build-release
114+ - name : Build cubejs-backend-native (without Python)
115+ run : yarn run native:build-release
116+ working-directory : ./packages/cubejs-backend-native
111117 - name : Run Integration tests for ${{ matrix.db }} matrix
112- timeout-minutes : 30
118+ uses : nick-fields/retry@v3
119+ with :
120+ max_attempts : 3
121+ retry_on : error
122+ retry_wait_seconds : 15
123+ timeout_minutes : 30
124+ command : ./.github/actions/integration/${{ matrix.db }}.sh
113125 env :
114126 CUBEJS_DB_BQ_CREDENTIALS : ${{ secrets.CUBEJS_DB_BQ_CREDENTIALS }}
115127 CUBEJS_AWS_KEY : ${{ secrets.CUBEJS_AWS_KEY }}
116128 CUBEJS_AWS_SECRET : ${{ secrets.CUBEJS_AWS_SECRET }}
117129 CUBEJS_DB_USER : ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_USER }}
118130 CUBEJS_DB_PASS : ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_PASS }}
119- run : ./.github/actions/integration/${{ matrix.db }}.sh
0 commit comments