Skip to content

feat(review): local review notes across app, CLI, and agents (#88) #202

feat(review): local review notes across app, CLI, and agents (#88)

feat(review): local review notes across app, CLI, and agents (#88) #202

Workflow file for this run

name: GPUI CI
on:
push:
branches: [main]
paths:
- "shell/gpui/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/gpui-ci.yml"
pull_request:
paths:
- "shell/gpui/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/gpui-ci.yml"
permissions:
contents: read
concurrency:
group: gpui-ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
name: Rust (linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install Linux deps
run: |
sudo apt-get update
sudo apt-get install -y \
gcc g++ clang libfontconfig-dev libwayland-dev \
libxkbcommon-x11-dev libx11-xcb-dev libssl-dev libzstd-dev \
vulkan-validationlayers libvulkan1
- name: Install jj (for component test fixtures)
env:
# Keep aligned with jj-lib pin in Cargo.toml.
JJ_VERSION: v0.43.0
run: |
curl -fsSL "https://github.com/jj-vcs/jj/releases/download/${JJ_VERSION}/jj-${JJ_VERSION}-x86_64-unknown-linux-musl.tar.gz" \
| tar -xz -C /tmp ./jj
sudo mv /tmp/jj /usr/local/bin/jj
jj --version
- name: Cache cargo
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-gpui-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-gpui-${{ runner.os }}-
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Build jayjay-gpui
run: cargo build -p jayjay-gpui
- name: Test
run: cargo test --workspace
windows:
name: Rust (windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install jj (for component test fixtures)
shell: pwsh
env:
# Keep aligned with jj-lib pin in Cargo.toml.
JJ_VERSION: v0.43.0
run: |
$url = "https://github.com/jj-vcs/jj/releases/download/$env:JJ_VERSION/jj-$env:JJ_VERSION-x86_64-pc-windows-msvc.zip"
Invoke-WebRequest -Uri $url -OutFile jj.zip
Expand-Archive -Path jj.zip -DestinationPath "$env:USERPROFILE\jj-bin"
Add-Content -Path $env:GITHUB_PATH -Value "$env:USERPROFILE\jj-bin"
& "$env:USERPROFILE\jj-bin\jj.exe" --version
- name: Cache cargo
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-gpui-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-gpui-${{ runner.os }}-
- name: Build jayjay-gpui
run: cargo build -p jayjay-gpui
- name: Test
run: cargo test --workspace