Skip to content

Commit 139bf7b

Browse files
committed
ci: install libodbc with libodbc1->libodbc2 fallback
1 parent f310e61 commit 139bf7b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ jobs:
4141
- name: Install system dependencies
4242
run: |
4343
sudo apt-get update
44-
ODBC_PKG="libodbc1"
45-
if ! apt-cache show libodbc1 >/dev/null 2>&1; then
46-
ODBC_PKG="libodbc2"
44+
if ! sudo apt-get install -y --no-install-recommends libodbc1; then
45+
sudo apt-get install -y --no-install-recommends libodbc2
4746
fi
4847
sudo apt-get install -y --no-install-recommends \
49-
"$ODBC_PKG" \
5048
gcc \
5149
g++ \
5250
make \

0 commit comments

Comments
 (0)