Skip to content

Performance fixes

Performance fixes #302

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- "shell/mac/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "shell/mac/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/ci.yml"
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
runs-on: macos-26
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install jj (for component test fixtures)
run: brew install jj
- name: Cache cargo
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-
- name: Test
run: cargo test --workspace
swift:
runs-on: macos-26
needs: rust
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install tools
run: brew install just xcodegen xcbeautify swiftlint jj
- name: Cache cargo
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-
- name: Lint Swift
run: swiftlint lint --config .swiftlint.yml --strict
- name: Build app
run: just build
- name: Test app
run: just test-app
- name: UI tests
run: just test-ui
- name: Upload xcresult on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: ui-test-xcresult
path: build/DerivedData/Logs/Test/*.xcresult
if-no-files-found: warn