Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0788a0f
create run_tests
probably-neb Oct 28, 2025
b7606c9
add style and migrations tests
probably-neb Oct 28, 2025
797cb36
fixes
probably-neb Oct 28, 2025
612fad5
add check_docs
probably-neb Oct 28, 2025
96d2098
add actionlint and doctests
probably-neb Oct 28, 2025
5b0a90d
add test ci step
probably-neb Oct 28, 2025
4c07d91
fix docs runner size
probably-neb Oct 28, 2025
0c12600
xtask
probably-neb Oct 28, 2025
dbb259e
fix
probably-neb Oct 28, 2025
9e9e80a
copy fluent builder and add mold to linux setup
probably-neb Oct 28, 2025
e98099b
xtask
probably-neb Oct 28, 2025
74eecf0
bad copy paste
probably-neb Oct 28, 2025
c6a483f
allow unused on fluent copy
probably-neb Oct 28, 2025
4c057d5
setup linux in tests
probably-neb Oct 28, 2025
4bf77f1
make it run by iteself
probably-neb Oct 28, 2025
fa2bb41
split out docs
probably-neb Oct 28, 2025
4906dd0
split out rest
probably-neb Oct 28, 2025
67c4a40
move to files
probably-neb Oct 28, 2025
05bc36e
fix names
probably-neb Oct 28, 2025
1359014
fix prettier script
probably-neb Oct 28, 2025
60734db
run shellcheck as part of action checking
probably-neb Oct 28, 2025
de02188
clean
probably-neb Oct 28, 2025
a9d0326
add license checks
probably-neb Oct 28, 2025
ae13c18
xtask
probably-neb Oct 28, 2025
d13f55a
add missing checks from macos_tests
probably-neb Oct 28, 2025
41656d4
checkout repo
probably-neb Oct 28, 2025
189a7d2
fixes
probably-neb Oct 28, 2025
bc4a4ac
add clippy
probably-neb Oct 28, 2025
26f5f72
random docs change
probably-neb Oct 28, 2025
0fc2c39
remove old check_docs
probably-neb Oct 28, 2025
009697b
fix docs check name
probably-neb Oct 28, 2025
f6c2c23
clean
probably-neb Oct 28, 2025
02f0ecb
run nix-build on pull
probably-neb Oct 28, 2025
8971a26
merge main
probably-neb Oct 28, 2025
9aae8b4
clean
probably-neb Oct 28, 2025
c0aeaf9
style doesn't need to run clippy
probably-neb Oct 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ name: CI

on:
push:
branches:
- main
- "v[0-9]+.[0-9]+.x"
tags:
- "v*"

pull_request:
branches:
- "**"

concurrency:
# Allow only one workflow per any non-`main` branch.
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
Expand Down Expand Up @@ -273,15 +266,12 @@ jobs:
uses: ./.github/actions/run_tests

- name: Build collab
# we should do this on a linux x86 machinge
run: cargo build -p collab

- name: Build other binaries and features
run: |
cargo build --workspace --bins --all-features
cargo check -p gpui --features "macos-blade"
cargo check -p workspace
cargo build -p remote_server
cargo check -p gpui --examples
cargo build --workspace --bins --examples

# Since the macOS runners are stateful, so we need to remove the config file to prevent potential bug.
- name: Clean CI config file
Expand Down Expand Up @@ -731,10 +721,6 @@ jobs:
(contains(github.event.pull_request.labels.*.name, 'run-nix') ||
needs.job_spec.outputs.run_nix == 'true')
secrets: inherit
with:
flake-output: debug
# excludes the final package to only cache dependencies
cachix-filter: "-zed-editor-[0-9.]*-nightly"

bundle-windows-x64:
timeout-minutes: 120
Expand Down
42 changes: 31 additions & 11 deletions .github/workflows/nix_build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
# Generated from xtask::workflows::nix_build
# Rebuild with `cargo xtask workflows`.
name: nix_build
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: '1'
CARGO_INCREMENTAL: '0'
on:
workflow_call:
inputs:
flake-output:
type: string
default: default
cachix-filter:
type: string
pull_request:
branches:
- '**'
paths:
- nix/**
- flake.*
- Cargo.*
- rust-toolchain.toml
- .cargo/config.toml
push:
branches:
- main
- v[0-9]+.[0-9]+.x
paths:
- nix/**
- flake.*
- Cargo.*
- rust-toolchain.toml
- .cargo/config.toml
workflow_call: {}
jobs:
build_nix_linux_x86_64:
if: github.repository_owner == 'zed-industries'
Expand All @@ -33,9 +50,9 @@ jobs:
name: zed
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
cachixArgs: -v
pushFilter: ${{ inputs.cachix-filter }}
pushFilter: -zed-editor-[0-9.]*-nightly
- name: nix_build::build
run: nix build .#${{ inputs.flake-output }} -L --accept-flake-config
run: nix build .#debug -L --accept-flake-config
shell: bash -euxo pipefail {0}
timeout-minutes: 60
continue-on-error: true
Expand Down Expand Up @@ -63,9 +80,9 @@ jobs:
name: zed
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
cachixArgs: -v
pushFilter: ${{ inputs.cachix-filter }}
pushFilter: -zed-editor-[0-9.]*-nightly
- name: nix_build::build
run: nix build .#${{ inputs.flake-output }} -L --accept-flake-config
run: nix build .#debug -L --accept-flake-config
shell: bash -euxo pipefail {0}
- name: nix_build::limit_store
run: |-
Expand All @@ -75,3 +92,6 @@ jobs:
shell: bash -euxo pipefail {0}
timeout-minutes: 60
continue-on-error: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true
6 changes: 6 additions & 0 deletions .github/workflows/release_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '20'
- name: steps::clippy
run: ./script/clippy
shell: bash -euxo pipefail {0}
- name: steps::cargo_install_nextest
run: cargo install cargo-nextest --locked
shell: bash -euxo pipefail {0}
Expand Down Expand Up @@ -81,6 +84,9 @@ jobs:
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '20'
- name: steps::clippy
run: ./script/clippy.ps1
shell: pwsh
- name: steps::cargo_install_nextest
run: cargo install cargo-nextest --locked
shell: pwsh
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/run_action_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated from xtask::workflows::run_action_checks
# Rebuild with `cargo xtask workflows`.
name: run_action_checks
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: '1'
CARGO_INCREMENTAL: '0'
on:
pull_request:
branches:
- '**'
paths:
- .github/workflows/**
- .github/actions/**
- .github/actionlint.yml
- script/**
push:
branches:
- main
- v[0-9]+.[0-9]+.x
paths:
- .github/workflows/**
- .github/actions/**
- .github/actionlint.yml
- script/**
jobs:
actionlint:
if: github.repository_owner == 'zed-industries'
runs-on: namespace-profile-2x4-ubuntu-2404
steps:
- name: steps::checkout_repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
clean: false
- id: get_actionlint
name: run_action_checks::download_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash -euxo pipefail {0}
- name: run_action_checks::run_actionlint
run: |
${{ steps.get_actionlint.outputs.executable }} -color
shell: bash -euxo pipefail {0}
timeout-minutes: 60
shellcheck:
if: github.repository_owner == 'zed-industries'
runs-on: namespace-profile-2x4-ubuntu-2404
steps:
- name: steps::checkout_repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
clean: false
- name: run_action_checks::run_shellcheck
run: ./script/shellcheck-scripts error
shell: bash -euxo pipefail {0}
timeout-minutes: 60
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true
9 changes: 6 additions & 3 deletions .github/workflows/run_bundling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ jobs:
uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
with:
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: ./script/linux
- name: steps::setup_linux
run: ./script/linux
shell: bash -euxo pipefail {0}
- name: ./script/install-mold
- name: steps::install_mold
run: ./script/install-mold
shell: bash -euxo pipefail {0}
- name: ./script/bundle-linux
Expand Down Expand Up @@ -143,9 +143,12 @@ jobs:
uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
with:
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: ./script/linux
- name: steps::setup_linux
run: ./script/linux
shell: bash -euxo pipefail {0}
- name: steps::install_mold
run: ./script/install-mold
shell: bash -euxo pipefail {0}
- name: ./script/bundle-linux
run: ./script/bundle-linux
shell: bash -euxo pipefail {0}
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/run_docs_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Generated from xtask::workflows::run_docs_checks
# Rebuild with `cargo xtask workflows`.
name: run_docs_checks
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: '1'
CARGO_INCREMENTAL: '0'
on:
pull_request:
branches:
- '**'
paths:
- docs/**
- crates/docs_preprocessor/**
push:
branches:
- main
- v[0-9]+.[0-9]+.x
paths:
- docs/**
- crates/docs_preprocessor/**
jobs:
check_docs:
if: github.repository_owner == 'zed-industries'
runs-on: namespace-profile-8x16-ubuntu-2204
steps:
- name: steps::checkout_repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
clean: false
- name: steps::setup_cargo_config
run: |
mkdir -p ./../.cargo
cp ./.cargo/ci-config.toml ./../.cargo/config.toml
shell: bash -euxo pipefail {0}
- name: steps::cache_rust_dependencies
uses: swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: run_docs_checks::lychee_link_check
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332
with:
args: --no-progress --exclude '^http' './docs/src/**/*'
fail: true
- name: steps::setup_linux
run: ./script/linux
shell: bash -euxo pipefail {0}
- name: steps::install_mold
run: ./script/install-mold
shell: bash -euxo pipefail {0}
- name: run_docs_checks::install_mdbook
uses: peaceiris/actions-mdbook@ee69d230fe19748b7abf22df32acaa93833fad08
with:
mdbook-version: 0.4.37
- name: run_docs_checks::build_docs
run: |
mkdir -p target/deploy
mdbook build ./docs --dest-dir=../target/deploy/docs/
shell: bash -euxo pipefail {0}
- name: run_docs_checks::lychee_link_check
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332
with:
args: --no-progress --exclude '^http' 'target/deploy/docs'
fail: true
timeout-minutes: 60
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true
51 changes: 51 additions & 0 deletions .github/workflows/run_license_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Generated from xtask::workflows::run_license_checks
# Rebuild with `cargo xtask workflows`.
name: run_license_checks
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: '1'
CARGO_INCREMENTAL: '0'
on:
pull_request:
branches:
- '**'
paths:
- Cargo.lock
- '**/Cargo.lock'
- script/*licenses
- '**/LICENSE*'
- .github/workflows/run_license_checks.yml
push:
branches:
- main
- v[0-9]+.[0-9]+.x
paths:
- Cargo.lock
- '**/Cargo.lock'
- script/*licenses
- '**/LICENSE*'
- .github/workflows/run_license_checks.yml
jobs:
check_licenses:
runs-on: namespace-profile-2x4-ubuntu-2404
steps:
- name: steps::checkout_repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
clean: false
- name: ./script/check-licenses
run: ./script/check-licenses
shell: bash -euxo pipefail {0}
build_licenses:
runs-on: namespace-profile-4x8-ubuntu-2204
steps:
- name: steps::checkout_repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
clean: false
- name: ./script/generate-licenses
run: ./script/generate-licenses
shell: bash -euxo pipefail {0}
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true
48 changes: 48 additions & 0 deletions .github/workflows/run_style_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Generated from xtask::workflows::run_style_checks
# Rebuild with `cargo xtask workflows`.
name: run_style_checks
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: '1'
CARGO_INCREMENTAL: '0'
on:
pull_request:
branches:
- '**'
push:
branches:
- main
- v[0-9]+.[0-9]+.x
jobs:
check_style:
if: github.repository_owner == 'zed-industries'
runs-on: namespace-profile-4x8-ubuntu-2204
steps:
- name: steps::checkout_repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
clean: false
- name: steps::setup_pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
with:
version: '9'
- name: ./script/prettier
run: ./script/prettier
shell: bash -euxo pipefail {0}
- name: ./script/check-todos
run: ./script/check-todos
shell: bash -euxo pipefail {0}
- name: ./script/check-keymaps
run: ./script/check-keymaps
shell: bash -euxo pipefail {0}
- name: run_style_checks::check_for_typos
uses: crate-ci/typos@80c8a4945eec0f6d464eaf9e65ed98ef085283d1
with:
config: ./typos.toml
- name: steps::cargo_fmt
run: cargo fmt --all -- --check
shell: bash -euxo pipefail {0}
timeout-minutes: 60
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true
Loading
Loading