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 context_menu switch radio toggle link slider progress avatar badge input clipboard popover scroll_area scrollbar segmented separator spinner field status_dot combobox command_palette tooltip menu dropdown_menu select dialog empty_state grain alert toast speech; 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 grain panel resize_handle resizable shell titlebar toast alert window_controls; 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