mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-15 05:09:44 +08:00
* ci(e2e): reuse prebuilt CLI artifacts Signed-off-by: Evan Lezar <elezar@nvidia.com> * ci(e2e): reuse prebuilt gateway artifacts Signed-off-by: Evan Lezar <elezar@nvidia.com> * ci(e2e): reuse prebuilt VM driver artifact Signed-off-by: Evan Lezar <elezar@nvidia.com> --------- Signed-off-by: Evan Lezar <elezar@nvidia.com>
30 lines
915 B
YAML
30 lines
915 B
YAML
name: Setup E2E CLI
|
|
description: Download an architecture-matched prebuilt OpenShell CLI for E2E tests
|
|
|
|
inputs:
|
|
artifact-prefix:
|
|
description: Artifact name prefix; linux-<arch> is appended automatically
|
|
required: true
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Download prebuilt CLI
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: ${{ format('{0}-linux-{1}', inputs.artifact-prefix, runner.arch == 'X64' && 'amd64' || 'arm64') }}
|
|
path: .e2e/prebuilt-cli
|
|
|
|
- name: Configure prebuilt CLI
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
cli="$GITHUB_WORKSPACE/.e2e/prebuilt-cli/openshell"
|
|
if [[ ! -f "$cli" ]]; then
|
|
echo "downloaded artifact is missing $cli" >&2
|
|
exit 1
|
|
fi
|
|
chmod +x "$cli"
|
|
"$cli" --version
|
|
echo "OPENSHELL_BIN=$cli" >> "$GITHUB_ENV"
|