Skip to content

Commit c4f601e

Browse files
authored
Fix ODBC driver installation (#1994)
1 parent 8a13189 commit c4f601e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ jobs:
6363
poetry config virtualenvs.create false
6464
- name: Install ODBC driver
6565
run: |
66-
sudo curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
67-
sudo curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list -o /etc/apt/sources.list.d/mssql-release.list
66+
curl -sSL -O https://packages.microsoft.com/config/ubuntu/$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2)/packages-microsoft-prod.deb
67+
sudo dpkg -i packages-microsoft-prod.deb
6868
sudo apt-get update
69-
ACCEPT_EULA=Y sudo apt-get install -y msodbcsql18
69+
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
7070
- name: Run ci
7171
run: make ci
7272
- name: Test FastAPI/Blacksheep Example

0 commit comments

Comments
 (0)