Skip to content

Commit 8c4566c

Browse files
authored
chore(ci): PR workflow - reorganize core builds (speedup builds) (#9392)
1 parent 4f24eb1 commit 8c4566c

File tree

1 file changed

+11
-68
lines changed

1 file changed

+11
-68
lines changed

.github/workflows/push.yml

Lines changed: 11 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,6 @@ jobs:
120120
# files: ./packages/*/coverage/clover.xml
121121
# flags: cube-backend
122122
# verbose: true # optional (default = false)
123-
- name: Cargo test cubeorchestrator
124-
run: |
125-
cargo test --manifest-path rust/cubeorchestrator/Cargo.toml -j 1
126-
- name: Cargo test cubenativeutils
127-
run: |
128-
cargo test --manifest-path rust/cubenativeutils/Cargo.toml -j 1
129-
- name: Cargo test cubeshared
130-
run: |
131-
cargo test --manifest-path rust/cubeshared/Cargo.toml -j 1
132-
# - name: Cargo test cubesql
133-
# run: |
134-
# cargo test --manifest-path rust/cubesql/Cargo.toml -j 1
135-
- name: Cargo test cubesqlplanner
136-
run: |
137-
cargo test --manifest-path rust/cubesqlplanner/cubesqlplanner/Cargo.toml -j 1
138123

139124
lint:
140125
runs-on: ubuntu-24.04
@@ -179,6 +164,8 @@ jobs:
179164
retry_wait_seconds: 15
180165
timeout_minutes: 20
181166
command: yarn install --frozen-lockfile
167+
- name: Check Yarn lock wasn't modified
168+
run: if [ "$(git status | grep nothing)x" = "x" ]; then echo "Non empty changeset after lerna bootstrap"; git status; exit 1; else echo "Nothing to commit. Proceeding"; fi;
182169
- name: NPM lint
183170
run: yarn lint:npm
184171
- name: Lerna lint
@@ -199,7 +186,7 @@ jobs:
199186
run: |
200187
cargo fmt --manifest-path rust/cubesqlplanner/cubesqlplanner/Cargo.toml -- --check
201188
202-
build:
189+
unit-core:
203190
runs-on: ubuntu-24.04
204191
timeout-minutes: 60
205192
needs: latest-tag-sha
@@ -212,59 +199,15 @@ jobs:
212199
uses: actions-rust-lang/setup-rust-toolchain@v1
213200
with:
214201
toolchain: 1.84.1
215-
# override: true # this is by default on
216-
rustflags: ""
217202
components: rustfmt
218-
- name: Install Node.js 20.x
219-
uses: actions/setup-node@v4
220-
with:
221-
node-version: 20.x
222-
- name: Get yarn cache directory path
223-
id: yarn-cache-dir-path
224-
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
225-
shell: bash
226-
- name: Restore yarn cache
227-
uses: actions/cache@v4
228-
with:
229-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
230-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
231-
restore-keys: |
232-
${{ runner.os }}-yarn-
233-
- name: Set Yarn version
234-
run: yarn policies set-version v1.22.22
235-
- name: Yarn install
236-
uses: nick-fields/retry@v3
237-
env:
238-
CUBESTORE_SKIP_POST_INSTALL: true
239-
with:
240-
max_attempts: 3
241-
retry_on: error
242-
retry_wait_seconds: 15
243-
timeout_minutes: 20
244-
command: yarn install --frozen-lockfile
245-
- name: Check Yarn lock wasn't modified
246-
run: if [ "$(git status | grep nothing)x" = "x" ]; then echo "Non empty changeset after lerna bootstrap"; git status; exit 1; else echo "Nothing to commit. Proceeding"; fi;
247-
- name: Build Core Client libraries
248-
run: yarn build
249-
- name: Build other packages
250-
run: yarn lerna run --concurrency 1 build
251-
env:
252-
NODE_OPTIONS: --max_old_space_size=4096
253-
- name: Cargo build cubeorchestrator
254-
run: |
255-
cargo build --manifest-path rust/cubeorchestrator/Cargo.toml -j 4
256-
- name: Cargo build cubenativeutils
257-
run: |
258-
cargo build --manifest-path rust/cubenativeutils/Cargo.toml -j 4
259-
- name: Cargo build cubeshared
260-
run: |
261-
cargo build --manifest-path rust/cubeshared/Cargo.toml -j 4
262-
# - name: Cargo build cubesql
263-
# run: |
264-
# cargo build --manifest-path rust/cubesql/Cargo.toml -j 4
265-
- name: Cargo build cubesqlplanner
266-
run: |
267-
cargo build --manifest-path rust/cubesqlplanner/cubesqlplanner/Cargo.toml -j 4
203+
- name: Cargo test cubeorchestrator
204+
run: cargo test --manifest-path rust/cubeorchestrator/Cargo.toml -j 4
205+
- name: Cargo test cubenativeutils
206+
run: cargo test --manifest-path rust/cubenativeutils/Cargo.toml -j 4
207+
- name: Cargo test cubeshared
208+
run: cargo test --manifest-path rust/cubeshared/Cargo.toml -j 4
209+
- name: Cargo test cubesqlplanner
210+
run: cargo test --manifest-path rust/cubesqlplanner/cubesqlplanner/Cargo.toml -j 4
268211

269212
build-cubestore:
270213
needs: [latest-tag-sha]

0 commit comments

Comments
 (0)