Files
gpui-native-kit/.github/workflows/ci.yml
T
2026-11-02 16:24:20 +07:00

50 lines
1.6 KiB
YAML

name: CI
on:
push:
branches: [main, develop]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Format
run: cargo fmt --check
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Test
run: cargo test --workspace
- name: Feature checks (core)
run: |
cargo check -p gpui-native-core --no-default-features
cargo check -p gpui-native-core --all-features
for f in button checkbox switch radio toggle link slider progress avatar input popover tooltip menu dialog toast; do
cargo check -p gpui-native-core --no-default-features --features "$f"
done
- name: Feature checks (data)
run: |
cargo check -p gpui-native-data --no-default-features
cargo check -p gpui-native-data --all-features
for f in list sidebar tabs tree; do
cargo check -p gpui-native-data --no-default-features --features "$f"
done
- name: Feature checks (layout)
run: |
cargo check -p gpui-native-layout --no-default-features
cargo check -p gpui-native-layout --all-features
for f in dock resize_handle shell; do
cargo check -p gpui-native-layout --no-default-features --features "$f"
done
- name: Feature checks (facade)
run: |
cargo check -p gpui-native-kit --no-default-features
cargo check -p gpui-native-kit --all-features