aboutsummaryrefslogtreecommitdiff
path: root/llama.cpp/.github/actions/unarchive-tar/action.yml
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp/.github/actions/unarchive-tar/action.yml')
-rw-r--r--llama.cpp/.github/actions/unarchive-tar/action.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/llama.cpp/.github/actions/unarchive-tar/action.yml b/llama.cpp/.github/actions/unarchive-tar/action.yml
new file mode 100644
index 0000000..b97e402
--- /dev/null
+++ b/llama.cpp/.github/actions/unarchive-tar/action.yml
@@ -0,0 +1,27 @@
1name: "Unarchive tar"
2description: "Download and unarchive tar into directory"
3inputs:
4 url:
5 description: "URL of the tar archive"
6 required: true
7 path:
8 description: "Directory to unarchive into"
9 required: true
10 type:
11 description: "Compression type (tar option)"
12 required: false
13 default: "J"
14 strip:
15 description: "Strip components"
16 required: false
17 default: "0"
18
19runs:
20 using: "composite"
21 steps:
22 - name: Unarchive into directory
23 shell: bash
24 run: |
25 mkdir -p ${{ inputs.path }}
26 cd ${{ inputs.path }}
27 curl --no-progress-meter ${{ inputs.url }} | tar -${{ inputs.type }}x --strip-components=${{ inputs.strip }}