mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-20 06:00:06 +08:00
20 lines
659 B
YAML
20 lines
659 B
YAML
name: Setup E2E CLI
|
|
description: Download architecture-matched prebuilt OpenShell host CLIs for E2E tests
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Download prebuilt CLI
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: ${{ runner.arch == 'X64' && 'openshell-x86_64-unknown-linux-musl' || 'openshell-aarch64-unknown-linux-musl' }}
|
|
path: .e2e/prebuilt-cli
|
|
|
|
- name: Configure prebuilt CLI
|
|
shell: bash
|
|
run: |
|
|
cli="$GITHUB_WORKSPACE/.e2e/prebuilt-cli/openshell"
|
|
chmod +x "$cli"
|
|
"$cli" --version
|
|
echo "OPENSHELL_BIN=$cli" >> "$GITHUB_ENV"
|