Skip to content

Commit f936479

Browse files
committed
[GR-29808] Build jars first and then native images to minimize the used memory
1 parent ffeea56 commit f936479

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@ jobs:
9595

9696
- uses: ./build/.github/actions/setup-jvmci-graal
9797

98-
- name: Build TruffleRuby
98+
# [GR-29808] We build everything except native images first,
99+
# so that we minimize the memory used by mx, etc when building native images.
100+
- name: Build TruffleRuby (jars)
101+
run: jt build --env native --native-images=none
102+
- run: free -m
103+
- name: Build TruffleRuby (native images)
99104
run: jt build --env native
100105

101106
- name: Create archive

0 commit comments

Comments
 (0)