mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-06-27 23:50:20 -05:00
* fix(action): update SpacemiT toolchain URL and version Change-Id: If4cc1c738a855274103f8c3ad52daa33528acd0c * fix(action): add -L flag to curl command for URL redirection Change-Id: I9b6c37390f0c7a733a36308c8fb53d22d234ab06
28 lines
696 B
YAML
28 lines
696 B
YAML
name: "Unarchive tar"
|
|
description: "Download and unarchive tar into directory"
|
|
inputs:
|
|
url:
|
|
description: "URL of the tar archive"
|
|
required: true
|
|
path:
|
|
description: "Directory to unarchive into"
|
|
required: true
|
|
type:
|
|
description: "Compression type (tar option)"
|
|
required: false
|
|
default: "J"
|
|
strip:
|
|
description: "Strip components"
|
|
required: false
|
|
default: "0"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Unarchive into directory
|
|
shell: bash
|
|
run: |
|
|
mkdir -p ${{ inputs.path }}
|
|
cd ${{ inputs.path }}
|
|
curl --no-progress-meter -L ${{ inputs.url }} | tar -${{ inputs.type }}x --strip-components=${{ inputs.strip }}
|