Skip to content

Commit

Permalink
Add io_uring test environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 3, 2024
1 parent a7330ea commit 6a77e7d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
ruby-version: ${{matrix.ruby}}
bundler-cache: true

- name: Backends
run: bundle exec ruby -r"io/event" -e "puts IO::Event::Selector.constants"

- name: Run tests
timeout-minutes: 5
run: bundle exec bake test
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/test-io_uring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test

on: [push, pull_request]

permissions:
contents: read

env:
CONSOLE_OUTPUT: XTerm
IO_EVENT_SELECTOR: URing

jobs:
test:
name: ${{matrix.ruby}} on ${{matrix.os}} / IO_EVENT_SELECTOR=Select
runs-on: ${{matrix.os}}-latest

strategy:
matrix:
os:
- ubuntu

ruby:
- "3.3"

steps:
- uses: actions/checkout@v3

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

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
cache-version: io_uring

- name: Backends
run: bundle exec ruby -r"io/event" -e "puts IO::Event::Selector.constants"

- name: Run tests
timeout-minutes: 10
run: bundle exec bake test

- name: Run external tests
timeout-minutes: 10
run: bundle exec bake test:external

0 comments on commit 6a77e7d

Please sign in to comment.