Skip to content

Commit 092cddd

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 993e3ee commit 092cddd

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/ci.yml

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

1139-
- name: Download artifacts
1139+
- name: Download CMake artifacts
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: cmake_${{ matrix.host.name }}
1143+
path: artifacts
1144+
1145+
- name: Download host tools artifacts
1146+
uses: actions/download-artifact@v4
1147+
with:
1148+
pattern: hosttools_${{ matrix.host.name }}
1149+
path: artifacts
1150+
1151+
- name: Download GNU toolchain artifacts
1152+
uses: actions/download-artifact@v4
1153+
with:
1154+
pattern: toolchain_gnu_${{ matrix.host.name }}_*
11451155
path: artifacts
11461156

11471157
- name: Create distribution bundle

0 commit comments

Comments
 (0)