diff --git a/.github/workflows/cloud.yml b/.github/workflows/cloud.yml index 04e2ff0087425..c31898aef591c 100644 --- a/.github/workflows/cloud.yml +++ b/.github/workflows/cloud.yml @@ -80,13 +80,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Install cargo-cp-artifact - run: npm install -g cargo-cp-artifact@0.1 - - uses: Swatinem/rust-cache@v2 - with: - workspaces: ./packages/cubejs-backend-native - key: native-${{ runner.OS }}-${{ matrix.target }} - shared-key: native-${{ runner.OS }}-${{ matrix.target }} - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT" @@ -101,19 +94,37 @@ jobs: - name: Set Yarn version run: yarn policies set-version v1.22.22 - name: Yarn install - run: CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile - - name: Build client + uses: nick-fields/retry@v3 + env: + CUBESTORE_SKIP_POST_INSTALL: true + with: + max_attempts: 3 + retry_on: error + retry_wait_seconds: 15 + timeout_minutes: 20 + command: yarn install --frozen-lockfile + - name: Build Core Client libraries run: yarn build + - name: Build other packages + run: yarn lerna run --concurrency 1 build + env: + NODE_OPTIONS: --max_old_space_size=4096 - name: Lerna tsc run: yarn tsc - - name: Build native (no python) - run: cd packages/cubejs-backend-native && npm run native:build-release + - name: Build cubejs-backend-native (without Python) + run: yarn run native:build-release + working-directory: ./packages/cubejs-backend-native - name: Run Integration tests for ${{ matrix.db }} matrix - timeout-minutes: 30 + uses: nick-fields/retry@v3 + with: + max_attempts: 3 + retry_on: error + retry_wait_seconds: 15 + timeout_minutes: 30 + command: ./.github/actions/integration/${{ matrix.db }}.sh env: CUBEJS_DB_BQ_CREDENTIALS: ${{ secrets.CUBEJS_DB_BQ_CREDENTIALS }} CUBEJS_AWS_KEY: ${{ secrets.CUBEJS_AWS_KEY }} CUBEJS_AWS_SECRET: ${{ secrets.CUBEJS_AWS_SECRET }} CUBEJS_DB_USER: ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_USER }} CUBEJS_DB_PASS: ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_PASS }} - run: ./.github/actions/integration/${{ matrix.db }}.sh