Skip to content

Gpui orphan punct

Gpui orphan punct #67

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
# gpui is built from the zed git fork (huge). Trim CI compile time and the
# cached target size (GitHub's cache cap is 10 GB) so caching stays effective.
CARGO_PROFILE_DEV_DEBUG: "0" # no debuginfo: faster codegen, much smaller target
CARGO_INCREMENTAL: "0" # incremental only helps warm local trees, not CI
CARGO_NET_GIT_FETCH_WITH_CLI: "true" # system git fetches the large zed repo faster
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and build
uses: Swatinem/rust-cache@v2
with:
# Persist the (expensive) gpui-from-git build even if a later step fails.
cache-on-failure: "true"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev libxkbcommon-dev libwayland-dev libxcb1-dev libxkbcommon-x11-dev libfontconfig1-dev
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GH_API_TOKEN }}
run: cargo test --verbose