Skip to content

Commit 5cae8cd

Browse files
committed
ci: handle libodbc package rename on newer Ubuntu
1 parent 550039d commit 5cae8cd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ 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"
47+
fi
4448
sudo apt-get install -y --no-install-recommends \
45-
libodbc1 \
49+
"$ODBC_PKG" \
4650
gcc \
4751
g++ \
4852
make \

0 commit comments

Comments
 (0)