From a0746bad7ebf13fd0c34b37ca3013b9ca6f1ce3a Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Tue, 13 May 2025 12:43:10 -0700 Subject: [PATCH] ci: add job to check no-std build (#1851) Uses x86_64-unknown-none as an arbitrary target that does not support the std library Resolves: https://github.com/ratatui/ratatui/issues/1843 --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bc1bc73..6e5f19b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,6 +132,23 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: cargo xtask check --all-features + build-no-std: + name: Build No-Std + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-unknown-none + - uses: Swatinem/rust-cache@v2 + # This makes it easier to debug the exact versions of the dependencies + - run: cargo tree --target x86_64-unknown-none -p ratatui-core + - run: cargo tree --target x86_64-unknown-none -p ratatui-widgets + - run: cargo tree --target x86_64-unknown-none -p ratatui --no-default-features + - run: cargo build --target x86_64-unknown-none -p ratatui-core + - run: cargo build --target x86_64-unknown-none -p ratatui-widgets + - run: cargo build --target x86_64-unknown-none -p ratatui --no-default-features + # Check if README.md is up-to-date with the crate's documentation. check-readme: name: Check README