Skip to content

Upgrade flake and CI - #216

Merged
fdncred merged 3 commits into
nushell:mainfrom
Sha1rholder:update-main-ci
Sep 3, 2026
Merged

fdncred merged 3 commits into
nushell:mainfrom
Sha1rholder:update-main-ci

Conversation

@Sha1rholder

Copy link
Copy Markdown
Contributor

First step of #214

Refresh and consolidate CI and Nix flake setup in preparation for upcoming rust dependency updates.

CI

  • Merge workflows and update GitHub Actions.
  • Run tests on Linux, Windows, and macOS. (note: nixos-26.05 will be the last version of nix that supports intel mac)
  • Run the file-format benchmark in CI and verify that it does not modify benches/example.nu. Fix the bug in benchmarking that modifies the example.
  • Add rustfmt.toml with hard_tabs = false to avoid inheriting an incompatible global rustfmt setting.

Nix

All CI passes: https://github.com/Sha1rholder/nufmt/actions/runs/33722282439

The content of flake.nix tightly coupled with CI. This is already the smallest PR that can pass CI. I suggest not split this PR further.

- update main ci dependencies
- fix: file-format-bench.rs edits example.nu while it shouldn't
- add rustfmt.toml to override global hard_tabs rule
- update flake ci dependencies
- merge flake ci to main ci

fixed NixOS/nixpkgs#524979 by switching
inputs.nixpkgs.url to "github:NixOS/nixpkgs/nixos-26.05"
Comment thread .github/workflows/main.yml Outdated
@fdncred
fdncred merged commit 08f332b into nushell:main Sep 3, 2026
7 checks passed
@fdncred

fdncred commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants