Skip to content

Commit e52ea56

Browse files
vkuttypCopilot
andcommitted
fix: use go-sqlcmd binary instead of mssql-tools18 apt package
mssql-tools18 apt repo setup fails on Ubuntu 24.04 runners. Switch to the standalone go-sqlcmd binary from GitHub releases — no apt/GPG setup needed, single curl install. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 76ed8c1 commit e52ea56

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,8 @@ jobs:
111111
run: sudo apt-get install -y libsqlite3-dev
112112
- name: Install sqlcmd
113113
run: |
114-
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft.gpg
115-
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/24.04/prod noble main" \
116-
| sudo tee /etc/apt/sources.list.d/mssql-tools.list
117-
sudo apt-get update -q
118-
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18 unixodbc-dev
119-
echo "/opt/mssql-tools18/bin" >> "$GITHUB_PATH"
114+
curl -sSL https://github.com/microsoft/go-sqlcmd/releases/latest/download/sqlcmd-linux-amd64.tar.gz \
115+
| tar -xz -C /usr/local/bin sqlcmd
120116
- name: Create test database
121117
timeout-minutes: 3
122118
run: |

0 commit comments

Comments
 (0)