Consolidate Rust release artifact downloads (#45051)

Download target artifacts, supplemental release assets, and staged npm
packages in a single `actions/download-artifact` step in
`.github/workflows/rust-release.yml` using a combined artifact pattern.

GitOrigin-RevId: 64c63cc7a2e263418b2a4064c1fd46e1c514cc29
This commit is contained in:
Charlie Marsh
2026-09-12 14:28:51 +00:00
committed by copyberry
parent 53c542d944
commit ee6814bfa4

View File

@@ -1586,17 +1586,11 @@ jobs:
echo "path=${notes_path}" >> "${GITHUB_OUTPUT}"
- name: Download target artifacts
- name: Download release artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: dist
pattern: "{aarch64,x86_64}-{apple-darwin{,-app-server},unknown-linux-musl{,-app-server},pc-windows-msvc}"
- name: Download supplemental release artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: dist
pattern: "{*-symbols,argument-comment-lint-*,python-runtime-wheel-*}"
pattern: "{{aarch64,x86_64}-{apple-darwin{,-app-server},unknown-linux-musl{,-app-server},pc-windows-msvc},*-symbols,argument-comment-lint-*,python-runtime-wheel-*,npm-packages}"
- name: List
run: ls -R dist/
@@ -1662,12 +1656,6 @@ jobs:
echo "npm_tag=" >> "$GITHUB_OUTPUT"
fi
- name: Download staged npm packages
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: npm-packages
path: dist/npm
- name: Stage installer scripts
run: |
cp scripts/install/install.sh dist/install.sh