Skip to content

Commit 26c2aa0

Browse files
rajveermalviyagnprice
authored andcommitted
check: Change runner image to ubuntu-24.04; add step to install system dependency
Change the runner image to use `ubuntu-24.04` directly, because `ubuntu-latest` may cause CI failures when there are unexpected changes in the future versions of the runner image. Then also add a step to manually install the `libsqlite3-dev` package, which we need. The `package:sqlite3` requires the system-installed sqlite3 shared library (`libsqlite3.so`) when running directly via Dart, on Linux. Whereas, when running under Flutter, it uses bundled libraries provided by `package:sqlite3_flutter_libs`. Previously, with `ubuntu-22.04` the `libsqlite3-dev` package was pre-installed: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#installed-apt-packages However, the `ubuntu-24.04` image no longer includes this package by default: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#installed-apt-packages Without that package, five unit tests would fail with the following error: Invalid argument(s): Failed to load dynamic library 'libsqlite3.so': libsqlite3.so: cannot open shared object file: No such file or directory dart:ffi new DynamicLibrary.open package:sqlite3/src/ffi/load_library.dart 52:27 _defaultOpen package:sqlite3/src/ffi/load_library.dart 127:12 OpenDynamicLibrary.openSqlite package:sqlite3/src/ffi/api.dart 13:39 sqlite3 package:drift/native.dart 313:12 _NativeDelegate.openDatabase package:drift/src/sqlite3/database.dart 79:19 Sqlite3Delegate.open package:drift/src/runtime/executor/helpers/engines.dart 431:22 DelegatedDatabase.ensureOpen.<fn>
1 parent f8ddff2 commit 26c2aa0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on: [push, pull_request]
44

55
jobs:
66
check:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-24.04
88
steps:
99
- uses: actions/[email protected]
1010

11+
- name: Install system dependencies
12+
run: TERM=dumb sudo apt install libsqlite3-dev -y
13+
1114
- name: Set up JDK
1215
uses: actions/[email protected]
1316
with:

0 commit comments

Comments
 (0)