The desktop build is a local script, not a CI job. This page is about the
automation that does run on GitHub: six workflow files under
Land/.github/workflows/, what each one executes, and the commands that give you
the same answer before you open a pull request.
The build itself - the six stages, the env-file system, the profile strings and the artifact layout - is the Build Pipeline reference. This page never restates it: it names the automation, the two checks that gate a change, and the one job that writes to the repository on its own.
What runs, and when
| Workflow | Trigger | Job | What it does |
|---|---|---|---|
Rust.yml |
push and pull_request to Current, workflow_dispatch, workflow_call |
Build |
cargo build --release --all-features on a stable / nightly matrix |
Node.yml |
push and pull_request to Current, workflow_dispatch, workflow_call |
Pre-Publish |
pnpm install and pnpm run prepublishOnly on a Node 18 / 19 / 20 matrix, uploads Target |
NPM.yml |
release created, workflow_dispatch, workflow_call |
Publish |
npm publish from the Release environment |
GitHub.yml |
issues and pull_request opened |
Assign |
assigns the issue or pull request to one maintainer |
Dependabot.yml |
pull_request from dependabot[bot] |
Approve then Merge |
approves the dependency pull request, then enables auto-merge |
Auto.yml |
daily at 00:00, workflow_dispatch, workflow_call |
Commit |
writes .github/Update.md and pushes a commit to Current |
Every workflow sets the same concurrency group with cancel-in-progress: true,
so a second push to the same branch cancels the first run. Every job also
exports the same long block of telemetry opt-out variables (DO_NOT_TRACK,
NEXT_TELEMETRY_DISABLED, ASTRO_TELEMETRY_DISABLED and the rest) so no
toolchain in the job phones home.
The two checks that gate a change
These are the jobs a pull request against Current actually has to pass. Both
are ordinary commands, and both are cheap to run yourself.
Rust
Rust.yml builds the workspace twice - once on the stable toolchain and once
on nightly - with:
cargo build --release --all-features --manifest-path ./Cargo.toml
The cache is keyed on hashFiles('./Cargo.toml') and holds ~/.cargo/bin/,
~/.cargo/registry/index/, ~/.cargo/registry/cache/, ~/.cargo/git/db/,
target/ and Target/. The same command is what you run locally; the only
difference in the job is the toolchain matrix.
The pinned channel the repository actually builds with is
Land/rust-toolchain.toml; Cargo.toml’s rust-version is the minimum
supported version, which is a different fact. See
Installation for the toolchain the desktop build expects.
Node
Node.yml runs the pre-publish step for every package in the workspace:
pnpm install
pnpm run prepublishOnly
The job pins pnpm 9.3.0 through pnpm/action-setup and passes the workspace
flags explicitly (--link-workspace-packages=true, --lockfile-only,
--prefer-frozen-lockfile=false, --shamefully-hoist=false,
--shared-workspace-lockfile=true, --strict-peer-dependencies=false,
--unsafe-perm=true). It then uploads ./Target as
.-Node-<version>-Target.
The matrix runs Node 18, 19 and 20. The desktop build is a different
requirement: it compiles the vendored VS Code platform with the version in
Dependency/Microsoft/Dependency/Editor/.nvmrc (Node 24). The pre-publish job
does not compile the editor - it only runs each package’s prepublishOnly
script - so the two numbers are not in conflict, but they are also not
interchangeable.
What CI does not do
- No workflow runs
Maintain/Debug/Build.shorMaintain/Release/Build.sh. Nothing in.github/workflows/invokestauri, the Tauri bundler, or either build script. A green pull request means the Rust workspace compiles and every package’sprepublishOnlyscript succeeds; it does not mean a.appwas produced. - No desktop artifact is published by CI. The one artifact a workflow uploads
is
./Targetfrom the pre-publish job. Installers, signatures and checksums are build outputs of the release scripts, run on a machine that has the platform toolchain. - No test suite is invoked. No workflow runs a test command; the jobs build.
That is why the Build Pipeline page exists beside this one: reproducing a release means running the local scripts, and reproducing a CI failure means running the two commands above.
Reproduce the checks locally
From the repository root:
# Rust - the same command both matrix legs run
cargo build --release --all-features --manifest-path ./Cargo.toml
# Node - the same two commands the pre-publish job runs
pnpm install
pnpm run prepublishOnly
If prepublishOnly fails, the failure is in a package’s own build script, and
Element/<Name>/package.json is where that script is defined. If the Rust build
fails on one toolchain and not the other, install the other one
(rustup toolchain install nightly) and rebuild - the matrix exists because the
two disagree often enough to be worth catching.
The job that writes to the repository
Auto.yml is the one workflow whose job is to commit to the repository. Daily,
it writes the current date into .github/Update.md, commits everything in the
tree as the Auto user with an empty commit message, and pushes to Current:
echo "Update: $(date)" > .github/Update.md
git add .
git commit -a --allow-empty-message -m ""
A branch that gains a commit you did not make, with an empty message and a
.github/Update.md change, came from this job. It is the reason a local tree can
fall behind without anyone pushing to it.
Dependabot.yml is the one workflow that acts on a pull request itself rather
than on its contents: it approves a pull request authored by dependabot[bot]
(gh pr review --approve) and then enables auto-merge
(gh pr merge --auto --merge). It never touches a human’s pull request, because
both jobs are gated on github.actor == 'dependabot[bot]'.
Related Documentation
- Build Pipeline - the six stages, the env-file system, the profile strings and the artifact layout this automation does not run
- Getting Started - the build walked step by step, with the checkpoints to expect
- Quickstart - the build commands alone
- Configuration - the complete environment-variable reference
- Troubleshooting - build, startup and runtime failures
- Deep Dives - component architecture details
Project Maintainers: Source Open (Source/[email protected]) | GitHub Repository | Report an Issue