Commit graph

138 commits

Author SHA1 Message Date
Matt Sturgeon
d9d1f5aac9
compound expression returns 1 if expression evaluates to 0 2025-05-27 18:43:50 +01:00
Matt Sturgeon
9caffee9b0
more debugging 2025-05-27 18:38:10 +01:00
Matt Sturgeon
39abfc7c1a
debugging 2025-05-27 18:31:03 +01:00
Matt Sturgeon
e296fe2fdc
Revert "ci: fix bash increment syntax"
This reverts commit 67ca549ff5.
2025-05-27 18:30:15 +01:00
Matt Sturgeon
67ca549ff5
ci: fix bash increment syntax 2025-05-27 18:20:30 +01:00
Matt Sturgeon
60438d8017
fix fail_fast 2025-05-27 17:46:39 +01:00
Matt Sturgeon
bf9084246a
ci/actions/build: check error numerically 2025-05-27 17:39:18 +01:00
Matt Sturgeon
b2a158bf32
ci/actions/build: specify shell 2025-05-27 17:31:28 +01:00
Matt Sturgeon
fc8f4b2624
ci: introduce build action 2025-05-27 17:25:18 +01:00
Matt Sturgeon
0f0dca464e
ci/check: move matrix output 2025-05-27 15:45:58 +01:00
Matt Sturgeon
f77ecb989a
ci/build: specify systemAsName option 2025-05-26 00:05:13 +01:00
Matt Sturgeon
73ca23dd44
ci: use system as build name 2025-05-25 23:55:11 +01:00
Matt Sturgeon
920f15638e
ci/check: set build name 2025-05-25 23:47:28 +01:00
Matt Sturgeon
2ce3bdd6f3
ci: matrix.include 2025-05-25 23:42:32 +01:00
Matt Sturgeon
b147e6a6af
ci: stringify builds to JSON 2025-05-25 23:30:14 +01:00
Matt Sturgeon
ed2c309964
ci: nested matrix build 2025-05-25 23:20:50 +01:00
Matt Sturgeon
ce432ab608
ci: FIX passing os as an array 2025-05-25 21:56:30 +01:00
Matt Sturgeon
f94d952820
ci/check: split build into reusable workflow 2025-05-25 21:42:51 +01:00
Matt Sturgeon
fd44fb9264
ci(check): split check-flake into another workflow 2025-05-25 21:02:08 +01:00
Matt Sturgeon
0f1c6e0d50
fixup! ci/check: init 2025-05-25 18:48:43 +01:00
Matt Sturgeon
88fd87bf53
fixup! ci/check: init 2025-05-25 18:07:57 +01:00
Matt Sturgeon
4981d6a4e3
fixup! ci/check: init 2025-05-25 18:00:54 +01:00
Matt Sturgeon
f57d629bb0
ci/check: init
Adds a "check" CI workflow to replace buildbot.

Uses nix-community/nix-github-actions to generate a job matrix as a
`githubActions.matrix` flake output. This allows more customisation than
simply building _all_ `checks`.
2025-05-25 17:19:58 +01:00
Matt Sturgeon
e3f4a57fb8
docs/mdbook: install directly to $out
This fixes a regression introduced by https://github.com/nix-community/nixvim/pull/3349
2025-05-23 21:50:22 +01:00
Matt Sturgeon
d88fde1899
ci/update-other: trigger updates for 25.05 2025-05-23 20:32:58 +01:00
Matt Sturgeon
ad7e489aa1
ci/update: use nix-community GitHub App 2025-05-23 19:49:03 +01:00
Matt Sturgeon
fb2d007f95
ci/update-other: don't run on forks 2025-05-23 18:59:43 +01:00
Matt Sturgeon
132c1611f6
update-scripts: move update logic from CI to dedicated script 2025-05-22 21:27:21 +01:00
Matt Sturgeon
8e732cfac1
flake/dev: rename nixpkgs input to avoid shadowing
Rename `inputs.nixpkgs` to `inputs.dev-nixpkgs` to avoid shadowing the
root flake's `inputs.nixpkgs`.

Having the dev flake shadow an input can be confusing, since overriding
the root flake's input will have no effect when evaluating outputs that
depend on the dev partition.

The only reason we specify a `nixpkgs` input at all here, is so the
other inputs can follow it.

Once nix 2.26 is more prevalent, we can follow the root flake's inputs
using a `"path:../.."` input.
2025-03-28 04:41:55 +00:00
dependabot[bot]
3a3abf1170
ci: bump cachix/install-nix-action from 30 to 31
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 30 to 31.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v30...v31)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-11 16:04:21 +00:00
Gaetan Lepage
268c2680a3 ci: add dependabot and track github-actions dependencies 2025-03-11 16:51:06 +01:00
Gaetan Lepage
bc34099731 ci/documentation: bump cachix action to v16 2025-03-10 21:17:13 +01:00
Matt Sturgeon
53f9d242ff
ci/update: link to workflow run in PR body 2025-02-24 21:26:33 +00:00
Matt Sturgeon
5cd74b54ad
ci/update: document how to re-update in PR body 2025-02-24 21:26:32 +00:00
Matt Sturgeon
723630ca40
ci/update: write PR body dynamically 2025-02-24 21:24:12 +00:00
Matt Sturgeon
4b0de83c39
ci/update: drop empty commits on re-apply 2025-02-24 16:04:29 +00:00
Matt Sturgeon
05981008b7
ci/update: fix inputs.nixpkgs.rev eval
Need to use raw output to avoid having a quoted string, otherwise we end
up with a malformed flakeref:

error: in URL 'github:NixOS/nixpkgs/"2d068ae5c6516b2d04562de50a58c682540de9bf"',
'"2d068ae5c6516b2d04562de50a58c682540de9bf"' is not a commit hash or branch/tag name
2025-02-24 13:06:38 +00:00
Matt Sturgeon
6d10fc0c87
flake: partition dev dependencies
This removes the need for end-users to manually set
`nixvim.inputs.devshell.follows = ""` (etc)

We offload evaluation of some of our flake modules into a `dev`
partition submodule.
- When its not needed, this submodule is not evaluated.
- When it is needed, it fetches extra inputs from `flake/dev/flake.nix`
  as part of evaluating the submodule.

See https://flake.parts/options/flake-parts-partitions.html
2025-02-23 17:23:57 +00:00
Matt Sturgeon
5281e8c583
ci/update: allow disabling re-applying commits
Most of the time we want to re-apply "manual"/"additional" commits from
the already open PR, however it is possible we may wish to run the CI
without doing so.

Add an on-by-default tickbox to toggle the `re_apply` step.
2025-02-05 17:06:17 +00:00
Matt Sturgeon
61fdbe2647
ci/update: fix re-apply commit order
We need to reverse the `rev-list` output so that the commits are
re-applied in the correct order; oldest first.
2025-02-05 16:51:58 +00:00
Matt Sturgeon
93df574b42
ci/update: fix create pr step not having $pr_num 2025-01-30 21:24:32 +00:00
Matt Sturgeon
7f5dc96b83
ci/update: re-apply manual commits from open PR
Instead of comparing the nixpkgs input revision, we can re-apply any
manually committed changes and then check if any files are different
before pushing.
2025-01-30 21:24:25 +00:00
Matt Sturgeon
f9904d22df
ci/update: don't request review on the PR
@github-actions[bot] doesn't have access to nix-community teams, so it
can't request @nix-community/nixvim review the PR.
2025-01-30 19:20:44 +00:00
Matt Sturgeon
f028201847
ci/update: don't assign a team to the PR
Only users can be assigned to PRs, not teams.
2025-01-30 19:01:46 +00:00
Matt Sturgeon
8bf206eb75
ci/update: drop dependency on peter-evans/create-pull-request
We can create/update PRs using the `gh pr` command, no need for a third
party dependency.
2025-01-30 18:04:58 +00:00
Matt Sturgeon
bffee37f57
ci/update: use if then else for setting cancelled step output
The simpler `[[ ]] &&` construct can exit non-zero, causing the workflow
to fail.
2025-01-30 15:57:24 +00:00
Matt Sturgeon
818c2906e9
ci/update: cleanup summary step 2025-01-28 13:52:08 +00:00
Matt Sturgeon
62a0dfbe5d
ci/update: cancel gracefully
Cancelling via `exit 1` will mark the workflow as "failed". Instead we
can write a `cancelled` step output and have all the following steps
be conditional.
2025-01-28 13:52:07 +00:00
Matt Sturgeon
4652e38ee6
ci/update: add input checkbox for checking nixpkgs was bumped
This is done by default when scheduled, but can be explicitly enabled
when running manually.
2025-01-28 13:01:50 +00:00
Matt Sturgeon
c3d95240c4
ci/update: check against base branch if no PR is open 2025-01-28 13:01:20 +00:00