Skip to content

Commit

Permalink
Add liburing package installation for Ubuntu tests. (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix authored Jan 3, 2024
1 parent 9cd1013 commit 75f4fb0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- "3.2"
- "3.3"
- "head"

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
ruby-version: ${{matrix.ruby}}
bundler-cache: true

- name: Install packages (Ubuntu)
if: matrix.os == 'ubuntu'
run: sudo apt-get install -y liburing-dev

- name: Run tests
timeout-minutes: 10
run: bundle exec bake build test
2 changes: 1 addition & 1 deletion ext/io/event/selector/uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ static inline off_t io_seekable(int descriptor) {
return -1;
}
#else
#warning Upgrade your kernel to 5.16! io_uring bugs prevent efficient io_read/io_write hooks.
#warning Upgrade your kernel to 5.16+! io_uring bugs prevent efficient io_read/io_write hooks.
static inline off_t io_seekable(int descriptor)
{
if (lseek(descriptor, 0, SEEK_CUR) == -1) {
Expand Down

0 comments on commit 75f4fb0

Please sign in to comment.