Skip to content

Commit 91577fb

Browse files
committed
ci: Download host-specific artifacts when building distribution bundle
With the GitHub `download-artifact` action v4, it is now possible to specify a glob pattern for filtering the artifacts to be downloaded. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 36fec7e commit 91577fb

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,12 +1136,28 @@ jobs:
11361136
path: repository
11371137
persist-credentials: false
11381138

1139-
- name: Download artifacts
1139+
- name: Download version file
11401140
uses: actions/download-artifact@v4
11411141
with:
1142-
# NOTE: This downloads all build artifacts, including the toolchains and host tools for
1143-
# the irrelevant hosts, because the download-artifact action does not support
1144-
# specifying wildcards in the artifact name.
1142+
pattern: version
1143+
path: artifacts
1144+
1145+
- name: Download CMake artifacts
1146+
uses: actions/download-artifact@v4
1147+
with:
1148+
pattern: cmake_${{ matrix.host.name }}
1149+
path: artifacts
1150+
1151+
- name: Download host tools artifacts
1152+
uses: actions/download-artifact@v4
1153+
with:
1154+
pattern: hosttools_${{ matrix.host.name }}
1155+
path: artifacts
1156+
1157+
- name: Download GNU toolchain artifacts
1158+
uses: actions/download-artifact@v4
1159+
with:
1160+
pattern: toolchain_gnu_${{ matrix.host.name }}_*
11451161
path: artifacts
11461162

11471163
- name: Create distribution bundle

0 commit comments

Comments
 (0)