Skip to content

Flake speedup#156

Merged
davidabram merged 6 commits into
mainfrom
flake-speedup
Jul 24, 2026
Merged

Flake speedup#156
davidabram merged 6 commits into
mainfrom
flake-speedup

Conversation

@davidabram

Copy link
Copy Markdown
Member

No description provided.

davidabram and others added 6 commits July 23, 2026 16:24
Point packages.sce/.default and apps.sce/.default at the native
scePackage for faster development builds, and expose the static-musl
release binary as packages.sce-release / apps.sce-release. Retarget the
release-artifacts helper to build .#sce-release. On Linux the native and
release outputs are now distinct store paths; on Darwin the release
output equals the native build.

Co-authored-by: SCE <[email protected]>
Move SCE_GIT_COMMIT out of commonCargoArgs into a releaseCommitArgs
fragment applied only to the release derivations (scePackageMusl on
Linux, a new native-toolchain sceReleasePackageNative on Darwin). Native
packages.sce/default and the cli-tests/cli-clippy/cli-fmt checks no
longer carry the commit in their inputs, so they stay cache-reusable
across commits (native `sce version` reports "unknown"), while
.#sce-release still reports the real commit.

Reduce cli/build.rs emit_git_commit to emit the rustc-env value only
when SCE_GIT_COMMIT is explicitly set, with rerun-if-env-changed as its
sole trigger — dropping the git rev-parse fallback, the .git/HEAD and
.git/packed-refs rerun watches, and the now-unused std::process::Command
import.

On Darwin the release derivation now diverges from .#sce (shared
deps-only cargoArtifacts, distinct final crate carrying the commit).

Co-authored-by: SCE <[email protected]>
Exclude SCE and Turso packages from the default shell
to avoid unnecessary builds. Add an opt-in database shell
that layers Turso onto shared development tooling.

Co-authored-by: SCE <[email protected]>
Reduce generated manifest size while preserving
asset hashes, ordering, and rebuild tracking.

Co-authored-by: SCE <[email protected]>
Expose the release build and Linux portability audit
through packages.ci-checks while keeping expensive
validation out of nix flake check.

Co-authored-by: SCE <[email protected]>
@davidabram
davidabram merged commit f197ac7 into main Jul 24, 2026
8 checks passed
@davidabram
davidabram deleted the flake-speedup branch July 24, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant