Skip to content

Commit a55e23b

Browse files
committed
fix: use simpler libaio installation approach in Oracle CI
- Remove complex conditional checks that may fail - Use parentheses to group apt-get commands and || true to ignore errors - This ensures script continues even if package is already installed - Simplifies logic and prevents exit code 8 errors
1 parent adf4d91 commit a55e23b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,8 @@ jobs:
399399
sudo apt-get install -y wget unzip
400400
# Install libaio (required for Oracle Instant Client)
401401
# In Ubuntu 24.04+, libaio1 is replaced with libaio1t64
402-
# Check if package is installed, install only if not present
403-
if ! dpkg -l | grep -q "^ii.*libaio1t64" && ! dpkg -l | grep -q "^ii.*libaio1"; then
404-
sudo apt-get install -y libaio1t64 || sudo apt-get install -y libaio1 || true
405-
fi
402+
# Use --no-install-recommends and ignore errors to prevent exit code 8
403+
(sudo apt-get install -y --no-install-recommends libaio1t64 || sudo apt-get install -y --no-install-recommends libaio1) || true
406404
# Create symlink for compatibility with Oracle Instant Client (Ubuntu 24.04+)
407405
if [ -f /usr/lib/x86_64-linux-gnu/libaio.so.1t64 ] && [ ! -L /usr/lib/x86_64-linux-gnu/libaio.so.1 ]; then
408406
sudo ln -sf /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1

0 commit comments

Comments
 (0)