Skip to content

Commit 80ba72f

Browse files
committed
chore(ci): PR workflow - reorganize core builds (speedup builds)
1 parent 6c8564f commit 80ba72f

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
@@ -124,21 +124,6 @@ jobs:
124124
# files: ./packages/*/coverage/clover.xml
125125
# flags: cube-backend
126126
# verbose: true # optional (default = false)
127-
- name: Cargo test cubeorchestrator
128-
run: |
129-
cargo test --manifest-path rust/cubeorchestrator/Cargo.toml -j 1
130-
- name: Cargo test cubenativeutils
131-
run: |
132-
cargo test --manifest-path rust/cubenativeutils/Cargo.toml -j 1
133-
- name: Cargo test cubeshared
134-
run: |
135-
cargo test --manifest-path rust/cubeshared/Cargo.toml -j 1
136-
# - name: Cargo test cubesql
137-
# run: |
138-
# cargo test --manifest-path rust/cubesql/Cargo.toml -j 1
139-
- name: Cargo test cubesqlplanner
140-
run: |
141-
cargo test --manifest-path rust/cubesqlplanner/cubesqlplanner/Cargo.toml -j 1
142127

143128
lint:
144129
runs-on: ubuntu-24.04
@@ -183,6 +168,8 @@ jobs:
183168
retry_wait_seconds: 15
184169
timeout_minutes: 20
185170
command: yarn install --frozen-lockfile
171+
- name: Check Yarn lock wasn't modified
172+
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;
186173
- name: NPM lint
187174
run: yarn lint:npm
188175
- name: Lerna lint
@@ -203,7 +190,7 @@ jobs:
203190
run: |
204191
cargo fmt --manifest-path rust/cubesqlplanner/cubesqlplanner/Cargo.toml -- --check
205192
206-
build:
193+
unit-core:
207194
runs-on: ubuntu-24.04
208195
timeout-minutes: 60
209196
needs: latest-tag-sha
@@ -216,59 +203,15 @@ jobs:
216203
uses: actions-rust-lang/setup-rust-toolchain@v1
217204
with:
218205
toolchain: 1.84.1
219-
# override: true # this is by default on
220-
rustflags: ""
221206
components: rustfmt
222-
- name: Install Node.js 20.x
223-
uses: actions/setup-node@v4
224-
with:
225-
node-version: 20.x
226-
- name: Get yarn cache directory path
227-
id: yarn-cache-dir-path
228-
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
229-
shell: bash
230-
- name: Restore yarn cache
231-
uses: actions/cache@v4
232-
with:
233-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
234-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
235-
restore-keys: |
236-
${{ runner.os }}-yarn-
237-
- name: Set Yarn version
238-
run: yarn policies set-version v1.22.22
239-
- name: Yarn install
240-
uses: nick-fields/retry@v3
241-
env:
242-
CUBESTORE_SKIP_POST_INSTALL: true
243-
with:
244-
max_attempts: 3
245-
retry_on: error
246-
retry_wait_seconds: 15
247-
timeout_minutes: 20
248-
command: yarn install --frozen-lockfile
249-
- name: Check Yarn lock wasn't modified
250-
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;
251-
- name: Build Core Client libraries
252-
run: yarn build
253-
- name: Build other packages
254-
run: yarn lerna run --concurrency 1 build
255-
env:
256-
NODE_OPTIONS: --max_old_space_size=4096
257-
- name: Cargo build cubeorchestrator
258-
run: |
259-
cargo build --manifest-path rust/cubeorchestrator/Cargo.toml -j 4
260-
- name: Cargo build cubenativeutils
261-
run: |
262-
cargo build --manifest-path rust/cubenativeutils/Cargo.toml -j 4
263-
- name: Cargo build cubeshared
264-
run: |
265-
cargo build --manifest-path rust/cubeshared/Cargo.toml -j 4
266-
# - name: Cargo build cubesql
267-
# run: |
268-
# cargo build --manifest-path rust/cubesql/Cargo.toml -j 4
269-
- name: Cargo build cubesqlplanner
270-
run: |
271-
cargo build --manifest-path rust/cubesqlplanner/cubesqlplanner/Cargo.toml -j 4
207+
- name: Cargo test cubeorchestrator
208+
run: cargo test --manifest-path rust/cubeorchestrator/Cargo.toml -j 4
209+
- name: Cargo test cubenativeutils
210+
run: cargo test --manifest-path rust/cubenativeutils/Cargo.toml -j 4
211+
- name: Cargo test cubeshared
212+
run: cargo test --manifest-path rust/cubeshared/Cargo.toml -j 4
213+
- name: Cargo test cubesqlplanner
214+
run: cargo test --manifest-path rust/cubesqlplanner/cubesqlplanner/Cargo.toml -j 4
272215

273216
build-cubestore:
274217
needs: [latest-tag-sha]

0 commit comments

Comments
 (0)