-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (60 loc) · 1.99 KB
/
Copy pathbash-compatibility.yml
File metadata and controls
69 lines (60 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Bash Compatibility
on:
push:
branches: ["main"]
paths:
- 'bash4llm'
- 'bin/bash4llm'
- '**.sh'
- '**.bash'
- 'tests/**'
- '.github/workflows/bash-compatibility.yml'
pull_request:
branches: ["main"]
paths:
- 'bash4llm'
- 'bin/bash4llm'
- '**.sh'
- '**.bash'
- 'tests/**'
- '.github/workflows/bash-compatibility.yml'
workflow_dispatch:
jobs:
bash-versions:
name: Test su Bash ${{ matrix.bash_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
bash_version: ["4.0", "4.4", "5.0", "5.1", "5.2"]
container:
image: bash:${{ matrix.bash_version }}
steps:
- name: Installazione pacchetti richiesti (Alpine)
run: |
apk add --no-cache coreutils findutils util-linux gawk curl jq git
- name: Checkout del codice
uses: actions/checkout@v4
- name: Prepariamo le cartelle e la whitelist dei modelli
run: |
mkdir -p "$HOME/.config/bash4llm/groq"
mkdir -p "$HOME/.config/groq"
mkdir -p ./bin/bash4llm.d/models
mkdir -p ./bash4llm.d/models
echo "llama-3.3-70b-versatile" > "$HOME/.config/bash4llm/groq/models.txt"
echo "llama-3.3-70b-versatile" > "$HOME/.config/groq/models.txt"
echo "llama-3.3-70b-versatile" > ./bin/bash4llm.d/models/models.txt
echo "llama-3.3-70b-versatile" > ./bash4llm.d/models/models.txt
echo "llama-3.3-70b-versatile" > ./bin/bash4llm.d/models/groq.txt
echo "llama-3.3-70b-versatile" > ./bash4llm.d/models/groq.txt
- name: Esecuzione Dry-Run
env:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY || 'dummy_key_for_dry_run' }}
run: |
# Dynamic Path Detection
B4L_BIN="./bin/bash4llm"
if [ ! -f "$B4L_BIN" ]; then
B4L_BIN="./bash4llm"
fi
chmod +x "$B4L_BIN"
"$B4L_BIN" --dry-run tests/good.json