Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Check

on: [push, pull_request]

env:
RUST_BACKTRACE: 1

jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt

- name: Check format
run: cargo fmt --all --check

check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-toolchain:
- nightly
- nightly-2025-05-20
- nightly-2025-12-12
- stable
env:
RUSTC_BOOTSTRAP: "${{ matrix.rust-toolchain == 'stable' && '1' || '' }}"
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust-toolchain }}
components: clippy

- uses: taiki-e/install-action@cargo-hack
- name: Clippy
run: cargo hack clippy --feature-powerset -- -D warnings
- name: Test
run: cargo hack test --feature-powerset -- --nocapture
58 changes: 0 additions & 58 deletions .github/workflows/ci.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Docs

on: [push, pull_request]

concurrency:
group: pages
cancel-in-progress: false

env:
RUST_BACKTRACE: 1
RUSTDOCFLAGS: -D rustdoc::broken_intra_doc_links -D missing-docs

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly

- name: Build docs
run: cargo doc --all-features --no-deps

- name: Add redirect
run: printf '<meta http-equiv="refresh" content="0;url=%s/index.html">' $(cargo tree | head -1 | cut -d' ' -f1) > target/doc/index.html

- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v4
with:
path: target/doc

deploy:
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Crates.io](https://img.shields.io/crates/v/axio)](https://crates.io/crates/axio)
[![Docs.rs](https://docs.rs/axio/badge.svg)](https://docs.rs/axio)
[![CI](https://github.com/arceos-org/axio/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/arceos-org/axio/actions/workflows/ci.yml)
[![CI](https://github.com/arceos-org/axio/actions/workflows/check.yml/badge.svg?branch=main)](https://github.com/arceos-org/axio/actions/workflows/check.yml)

[`std::io`][1]-like I/O traits for `no_std` environment.

Expand Down