Skip to content

Commit 356f3d6

Browse files
committed
ci: Upload release assets in parts
This commit modifies the CI release workflow to upload the release assets in multiple parts because the `softprops/action-gh-release` action attempts to load all specified release assets into the runner memory at once and this may cause the runner instance to run out of memory. For more details, refer to the GitHub issue #520. Revert this when the action is updated to use the streams. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 1d007f1 commit 356f3d6

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,43 @@ jobs:
5757
sha256sum * > ${GITHUB_WORKSPACE}/sha256.sum
5858
popd
5959
60-
- name: Upload release assets
60+
# NOTE: The release asset upload action is called in multiple parts because the
61+
# 'action-gh-release' action attempts to load all specified release assets
62+
# into the runner memory at once and this may cause the runner instance to
63+
# run out of memory (see the GitHub issue #520).
64+
- name: Upload release assets (host tools)
65+
uses: softprops/action-gh-release@v1
66+
with:
67+
files: |
68+
assets/hosttools_*
69+
70+
- name: Upload release assets (Linux toolchains)
71+
uses: softprops/action-gh-release@v1
72+
with:
73+
files: |
74+
assets/toolchain_linux*
75+
76+
- name: Upload release assets (macOS toolchains)
77+
uses: softprops/action-gh-release@v1
78+
with:
79+
files: |
80+
assets/toolchain_macos*
81+
82+
- name: Upload release assets (Windows toolchains)
83+
uses: softprops/action-gh-release@v1
84+
with:
85+
files: |
86+
assets/toolchain_windows*
87+
88+
- name: Upload release assets (Distribution bundles)
89+
uses: softprops/action-gh-release@v1
90+
with:
91+
files: |
92+
assets/${{ env.BUNDLE_PREFIX }}-*
93+
94+
- name: Upload release assets (checksum)
6195
uses: softprops/action-gh-release@v1
6296
with:
6397
files: |
64-
assets/*
6598
md5.sum
6699
sha256.sum

0 commit comments

Comments
 (0)