@@ -1292,3 +1292,76 @@ jobs:
12921292 uses : ./.github/workflows/uring-kernel-version-test.yml
12931293 with :
12941294 kernel_version : ${{ matrix.kernel_version }}
1295+
1296+ freebsd-x86_64 :
1297+ name : FreeBSD x86_64
1298+ needs : basics
1299+ runs-on : ubuntu-latest
1300+ steps :
1301+ - uses : actions/checkout@v6
1302+ - name : Test in FreeBSD
1303+ uses : vmactions/freebsd-vm@v1
1304+ with :
1305+ release : ' 14.4'
1306+ envs : " TOKIO_STABLE_FEATURES RUSTFLAGS"
1307+ prepare : |
1308+ pkg install -y curl
1309+ curl https://sh.rustup.rs -sSf --output rustup.sh
1310+ sh rustup.sh -y --profile minimal --default-toolchain ${{ env.rust_stable }}
1311+ run : |
1312+ . $HOME/.cargo/env
1313+ cargo test --workspace --features $TOKIO_STABLE_FEATURES
1314+ # Enable all unstable features except `io_uring` and `taskdump`,
1315+ # which are Linux-only features.
1316+ RUSTFLAGS="$RUSTFLAGS --cfg tokio_unstable" \
1317+ RUSTDOCFLAGS="--cfg tokio_unstable" \
1318+ cargo test \
1319+ --features $TOKIO_STABLE_FEATURES,tracing
1320+
1321+ freebsd-docs :
1322+ name : FreeBSD docs
1323+ needs : basics
1324+ runs-on : ubuntu-latest
1325+ steps :
1326+ - uses : actions/checkout@v6
1327+ - name : Test in FreeBSD
1328+ uses : vmactions/freebsd-vm@v1
1329+ env :
1330+ RUSTFLAGS : --cfg docsrs --cfg tokio_unstable
1331+ RUSTDOCFLAGS : --cfg docsrs --cfg tokio_unstable -Dwarnings
1332+ RUST_NIGHTLY : nightly-2025-10-12
1333+ with :
1334+ release : ' 14.4'
1335+ envs : " TOKIO_STABLE_FEATURES RUST_NIGHTLY RUSTDOCFLAGS RUSTFLAGS"
1336+ prepare : |
1337+ pkg install -y curl
1338+ curl https://sh.rustup.rs -sSf --output rustup.sh
1339+ sh rustup.sh -y --profile minimal --default-toolchain $RUST_NIGHTLY
1340+ run : |
1341+ . $HOME/.cargo/env
1342+ # We use `--features $TOKIO_STABLE_FEATURES,io-uring,tracing` instead of
1343+ # `--all-features` to exclude `taskdump` and `io_uring`, which are Linux-only
1344+ # features.
1345+ cargo doc --lib --no-deps --features $TOKIO_STABLE_FEATURES,tracing \
1346+ --document-private-items
1347+
1348+ freebsd-i686 :
1349+ name : FreeBSD i686
1350+ needs : basics
1351+ runs-on : ubuntu-latest
1352+ steps :
1353+ - uses : actions/checkout@v6
1354+ - name : Test in FreeBSD
1355+ uses : vmactions/freebsd-vm@v1
1356+ with :
1357+ release : ' 14.4'
1358+ envs : " TOKIO_STABLE_FEATURES RUSTFLAGS"
1359+ prepare : |
1360+ pkg install -y curl
1361+ curl https://sh.rustup.rs -sSf --output rustup.sh
1362+ sh rustup.sh -y --profile minimal --default-toolchain ${{ env.rust_stable }}
1363+ run : |
1364+ . $HOME/.cargo/env
1365+ rustup target add i686-unknown-freebsd
1366+ cargo test --workspace --features $TOKIO_STABLE_FEATURES \
1367+ --target i686-unknown-freebsd
0 commit comments