Skip to content

Commit b5d9b6f

Browse files
committed
Build standalone artifacts before unittest/retags to avoid re-building them
1 parent bb9345a commit b5d9b6f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/ci-unittest-retagger.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ on:
1010
required: false
1111

1212
jobs:
13+
14+
build-standalone-artifacts:
15+
uses: ./.github/workflows/ci-matrix-gen.yml
16+
with:
17+
jobs_to_run: ^(?=.*python-svm-build).*$
18+
1319
run-retagger:
20+
if: success()
21+
needs: build-standalone-artifacts
1422
uses: ./.github/workflows/ci-matrix-gen.yml
1523
with:
1624
jobs_to_run: ${{ github.event.inputs.jobs_to_run || 'python-unittest-retagger' }}

.github/workflows/ci-unittests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@ on:
55
workflow_dispatch:
66

77
jobs:
8-
run-tests:
8+
9+
build-standalone-artifacts:
910
if: github.event.pull_request.draft == false
1011
uses: ./.github/workflows/ci-matrix-gen.yml
1112
with:
12-
jobs_to_run: ^(?=.*python)(?!.*(retagger|dsl)).*$
13+
jobs_to_run: ^(?=.*python-svm-build).*$
14+
15+
run-tests:
16+
if: github.event.pull_request.draft == false && success()
17+
needs: build-standalone-artifacts
18+
uses: ./.github/workflows/ci-matrix-gen.yml
19+
with:
20+
jobs_to_run: ^(?=.*python)(?!.*(retagger|dsl|build)).*$

0 commit comments

Comments
 (0)