Skip to content

Commit e5d00df

Browse files
authored
Merge pull request #3531 from Easton97-Jens/v3/master_update_workflows
Fix Lua Detection on ci_new
2 parents da00c6d + db55832 commit e5d00df

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci_new.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
4949
sudo apt-get update -y -qq
5050
51-
CANDIDATES="$(apt-cache search '^liblua[0-9]+\.[0-9]+-dev$' | awk '{print $1}')"
51+
CANDIDATES="$(apt-cache pkgnames | grep -E '^liblua[0-9]+\.[0-9]+-dev$' || true)"
5252
5353
if [ -z "$CANDIDATES" ]; then
5454
echo "No libluaX.Y-dev package found"
@@ -63,9 +63,15 @@ jobs:
6363
| awk '{print $2}'
6464
)"
6565
66+
if [ -z "$BEST_PKG" ]; then
67+
echo "Failed to determine Lua package"
68+
exit 1
69+
fi
70+
6671
echo "lua_pkg=$BEST_PKG" >> "$GITHUB_OUTPUT"
6772
echo "Using $BEST_PKG"
6873
74+
6975
- name: Install dependencies
7076
run: |
7177
sudo apt-get install -y \
@@ -85,6 +91,12 @@ jobs:
8591
python3 \
8692
python3-venv
8793
94+
- name: Show Lua installation
95+
run: |
96+
which lua || true
97+
lua -v || true
98+
dpkg -l | grep lua || true
99+
88100
- name: Run build preparation script
89101
run: ./build.sh
90102

0 commit comments

Comments
 (0)