Skip to content

Commit 8b6f416

Browse files
Easton97-Jensjens
authored andcommitted
Update ci_new.yml
1 parent 5c09f4e commit 8b6f416

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci_new.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
fetch-depth: 0
4141
submodules: recursive
4242

43+
4344
- name: Detect latest Lua dev package
4445
id: detect_lua
4546
shell: bash
@@ -48,7 +49,7 @@ jobs:
4849
4950
sudo apt-get update -y -qq
5051
51-
CANDIDATES="$(apt-cache search '^liblua[0-9]+\.[0-9]+-dev$' | awk '{print $1}')"
52+
CANDIDATES="$(apt-cache pkgnames | grep -E '^liblua[0-9]+\.[0-9]+-dev$' || true)"
5253
5354
if [ -z "$CANDIDATES" ]; then
5455
echo "No libluaX.Y-dev package found"
@@ -63,9 +64,15 @@ jobs:
6364
| awk '{print $2}'
6465
)"
6566
67+
if [ -z "$BEST_PKG" ]; then
68+
echo "Failed to determine Lua package"
69+
exit 1
70+
fi
71+
6672
echo "lua_pkg=$BEST_PKG" >> "$GITHUB_OUTPUT"
6773
echo "Using $BEST_PKG"
6874
75+
6976
- name: Install dependencies
7077
run: |
7178
sudo apt-get install -y \

0 commit comments

Comments
 (0)