mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-01-25 07:47:52 +00:00
fs: add io_uring open operation (#7321)
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -359,6 +359,17 @@ jobs:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
steps:
|
||||
- name: check if io-uring is supported in the CI environment
|
||||
run: |
|
||||
# Try to read the io-uring setting in the kernel config file.
|
||||
# https://github.com/torvalds/linux/blob/75f5f23f8787c5e184fcb2fbcd02d8e9317dc5e7/init/Kconfig#L1782-L1789
|
||||
CONFIG_FILE="/boot/config-$(uname -r)"
|
||||
echo "Checking $CONFIG_FILE for io-uring support"
|
||||
if ! grep -q "CONFIG_IO_URING=y" "$CONFIG_FILE"; then
|
||||
echo "Error: io_uring is not supported"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust ${{ env.rust_stable }}
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
Reference in New Issue
Block a user