Skip to content

Commit d4cb13e

Browse files
ci: update workflow to add missing deps
1 parent 7cb17f1 commit d4cb13e

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,21 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16+
- name: Install dependencies (curl, wget, bash)
17+
run: |
18+
if command -v apt-get >/dev/null; then
19+
apt-get update && apt-get install -y bash curl wget
20+
elif command -v dnf >/dev/null; then
21+
dnf install -y bash curl wget
22+
fi
23+
1624
- name: Install tools
1725
run: |
18-
sudo apt-get update
19-
sudo apt-get install -y shellcheck shfmt
26+
if command -v apt-get >/dev/null; then
27+
sudo apt-get update && sudo apt-get install -y shellcheck shfmt
28+
elif command -v dnf >/dev/null; then
29+
dnf install -y bash shellcheck shfmt
30+
fi
2031
2132
- name: ShellCheck
2233
run: shellcheck -x install.sh uninstall.sh lib/*.sh tools/*.sh

0 commit comments

Comments
 (0)