Skip to content

Commit 71032dd

Browse files
committed
[relates #6433] Improve Windows build speed
1 parent c435bb4 commit 71032dd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci-build.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ jobs:
520520
os: [ 'windows-latest' ]
521521
if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'JVM')
522522
env:
523-
MAVEN_OPTS: -Xmx3000m
523+
MAVEN_OPTS: -Xmx3000m -Xms3000m
524524
steps:
525525
- name: Checkout
526526
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -540,13 +540,19 @@ jobs:
540540
- name: Extract Maven Repo
541541
shell: bash
542542
run: |
543-
tar -xzf ../maven-repo.tgz -C ~
543+
mkdir "D:\\temp"
544+
mkdir "D:\\maven-repo"
545+
tar -xzf ../maven-repo.tgz -C "D:\\maven-repo"
544546
rm -f ../maven-repo.tgz
545547
- name: cd integration-tests && mvn clean verify
546548
shell: bash
549+
env:
550+
TEMP: D:\\temp
551+
TMP: D:\\temp
552+
MAVEN_REPO_LOCAL: D:\\maven-repo\.m2\repository
547553
run: |
548554
cd integration-tests
549-
../mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} \
555+
../mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} -Dmaven.repo.local='${{ env.MAVEN_REPO_LOCAL }}' \
550556
-Dskip-testcontainers-tests -Dformatter.skip -Dimpsort.skip -Denforcer.skip \
551557
--fail-at-end \
552558
clean verify

0 commit comments

Comments
 (0)