name: Setup E2E Gateway description: Download an architecture-matched prebuilt OpenShell gateway for E2E tests inputs: artifact-name: description: GitHub artifact name required: false default: "" runs: using: composite steps: - name: Download prebuilt gateway uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: ${{ inputs.artifact-name || (runner.arch == 'X64' && 'openshell-gateway-x86_64-unknown-linux-gnu' || 'openshell-gateway-aarch64-unknown-linux-gnu') }} path: .e2e/prebuilt-gateway - name: Configure prebuilt gateway shell: bash run: | gateway="$GITHUB_WORKSPACE/.e2e/prebuilt-gateway/openshell-gateway" chmod +x "$gateway" "$gateway" --version echo "OPENSHELL_GATEWAY_BIN=$gateway" >> "$GITHUB_ENV"