Commit graph

59 commits

Author SHA1 Message Date
awwpotato
852207671f
ci: include release branch in update PR title (#1114) 2025-04-09 12:06:38 +01:00
dependabot[bot]
be86a9aadb ci: bump actions/create-github-app-token from 1 to 2
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1 to 2.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](https://github.com/actions/create-github-app-token/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: '2'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 17:49:09 -07:00
Daniel Thwaites
bb8af4c658
ci: skip adding Cachix for flake updates (#1108) 2025-04-05 21:24:28 +00:00
awwpotato
2cdfff2575
ci: run flake update on stable release (#1105) 2025-04-05 21:16:02 +00:00
awwpotato
2528e00e7c
ci: adjust flake update PR and commit messages (#1103)
Co-authored-by: Daniel Thwaites <danth@danth.me>
2025-04-05 21:03:31 +00:00
Daniel Thwaites
f3fee51f54
ci: remove github_actions label (#1102) 2025-04-05 20:34:33 +00:00
awwpotato
a6a467a7c1
ci: add flake update action (#1100) 2025-04-05 21:20:36 +01:00
dependabot[bot]
ac8dd8b1a6 ci: bump actions/create-github-app-token from 1 to 2
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1 to 2.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](https://github.com/actions/create-github-app-token/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: '2'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 19:21:27 -07:00
Flameopathic
194a91d001
doc: collapse flake.lock in GitHub bug template (#1059)
Link: https://github.com/danth/stylix/pull/1059

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-04-02 23:41:34 +02:00
NAHO
eede713515
ci: prevent unintentional credential persistence (#1074)
Link: https://woodruffw.github.io/zizmor/audits/#artipacked
2025-03-30 16:04:23 +01:00
Daniel Thwaites
20117a58eb
ci: run all builds in a single job (#1069)
This works around GitHub's limit on the number of matrix jobs (fixes
#947), by running all builds in a single job. To maintain some speed, we
use `nix-fast-build`, which uses multiple cores for evaluation, and skips
any builds for which the final derivation is already in a binary cache.

Although this makes the run for an individual pull request slower, the
amount of duplicated work is greatly reduced: previously, we often had
100 machines building the same derivation in parallel. This means that
more runners are available should there be multiple pull requests opened
in a short space of time, so there is less queuing. It's also more
energy efficient.

A potential downside is that the logs are all merged together, so it can
be hard to find what failed when lots of outputs were built.
`nix-fast-build` does report a list of failed attributes at the end of
the log, but this is currently broken:
https://github.com/Mic92/nix-fast-build/pull/98

The script used to launch `nix-fast-build` is also added to the
developer shell for local use. This replaces the old `nix-flake-check`
package (closes #898).

I also saw the opportunity to enable checks on `aarch64-linux` and
`aarch64-darwin` - as these are available as GitHub hosted runners.
2025-03-30 12:26:07 +01:00
Daniel Thwaites
8fce91704d
doc: add license check to PR template (#1072)
This serves as a reminder to check licenses properly. It's intentionally
vague to avoid giving wrong advice.
2025-03-29 23:09:03 +00:00
Daniel Thwaites
21b90991af
doc: improve maintainer subheading in PR template (#1071)
Made this not nested under "Things done", and replaced "CC" with
"Notify" for clarity.
2025-03-29 22:42:26 +00:00
Daniel Thwaites
61a5f77f22
doc: add contact links to issue template chooser (#1060)
Link: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
Link: https://github.com/danth/stylix/pull/1060

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-25 19:11:30 +01:00
awwpotato
5321ab0c76
doc: add GitHub PR template (#1038)
Add a relatively open-ended GitHub PR template, heavily inspired by the
Nixpkgs [1] and Home Manager [2] PR templates.

[1]: 9b94ad2d97/.github/PULL_REQUEST_TEMPLATE.md
[2]: c4d5d72805/.github/PULL_REQUEST_TEMPLATE.md

Link: https://github.com/danth/stylix/pull/1038

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-24 23:29:42 +01:00
Flameopathic
20349ced5c
doc: add GitHub issue templates (#921)
Closes: https://github.com/danth/stylix/issues/268
Link: https://github.com/danth/stylix/pull/921

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Co-authored-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-24 23:22:11 +01:00
dependabot[bot]
08e0c91d76 ci: bump cachix/cachix-action from 15 to 16
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 15 to 16.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v15...v16)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-14 11:28:38 +00:00
Daniel Thwaites
65c42633d4
ci: ignore Cachix errors (#952)
This commit allows CI jobs to degrade gracefully if Cachix has issues,
by skipping uploads and/or building packages from scratch rather than
failing the job.

This is in response to the recent failures on `master`, which appear to
be caused by a 502 (Bad Gateway) response while uploading some of the
build results.
2025-03-04 13:32:05 +00:00
Daniel Thwaites
b273375e6c
ci: add Cachix cache (#919)
This will improve CI performance, and may also be used locally,
although this is not officially documented at this time.

I tested the required amount of space by building a `pkgs.linkFarm`
containing all testbeds, then manually pushing this to an empty Cachix
cache.

The total space used was 274 MiB of the 5 GiB free allowance, so
Cachix is good enough to cache at least 20 commits of history,
assuming the worst case scenario of every commit changing
every derivation we build.

Fixes #880
2025-02-26 15:49:42 +00:00
Flameopathic
c8e4a0d218
treewide: optionalize stylix.image option (#717)
Optionalize the stylix.image option when stylix.base16Scheme is set,
making the following Stylix configurations valid:

    [
      // Now it possible to set 'stylix.image = null', if
      // stylix.base16Scheme is set.
      {
        base16Scheme = /* ... */;
      }

      // This configuration was already possible.
      {
        image = /* ... */;
      }

      // This configuration was already possible.
      {
        base16Scheme = /* ... */;
        image = /* ... */;
      }
    ]

Closes: https://github.com/danth/stylix/issues/200
Closes: https://github.com/danth/stylix/issues/442
Link: https://github.com/danth/stylix/pull/717

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-02-24 15:13:57 +01:00
NAHO
689fd55ff2
ci: make get-derivations job fail when input command fails (#888)
Make the get-derivations job fail when the command writing to the
$GITHUB_OUTPUT file fails.

Previously, the $GITHUB_OUTPUT file was successfully created when the
input command failed, resulting in an empty $GITHUB_OUTPUT file. [1]

[1]: https://stackoverflow.com/questions/59287865
2025-02-23 17:13:26 +00:00
Bernardo Meurer
d8289c3f0e
ci: disable IFD (#855)
Disable IFD in the CI to prevent regressions mentioned in commit
e72aa84da1 ("{vencord,vesktop}: revert attempt to support fonts
(#844)").

Link: https://github.com/danth/stylix/pull/855

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-11 22:32:56 +01:00
Daniel Thwaites
7c1c325928
ci: remove Magic Nix Cache (#745)
Magic Nix Cache will no longer work with the GitHub Actions cache
as of February 1st [1].

Temporarily removing this while we look into alternative solutions.

[1] https://determinate.systems/posts/magic-nix-cache-free-tier-eol/
2025-01-25 19:28:01 +00:00
NAHO
0a20c8d0ed
ci: standardize output redirection formatting (#756) 2025-01-12 16:15:05 +00:00
NAHO
8be9e8ad9a
ci: update Ubuntu runner to ubuntu-24.04 in Backport workflow
Fixes: fe72c2306f ("ci: update Ubuntu runner to ubuntu-24.04")
2025-01-06 23:29:45 +01:00
NAHO
0db7d025ed
ci: lock Ubuntu runner to ubuntu-22.04 in Backport workflow
Fixes: 1aa931f6f1 ("ci: lock workflow dependencies to increase reproducibility")
2025-01-06 23:27:19 +01:00
NAHO
284c5b0357
ci: run CI on PRs and limit push event to protected branches (#751)
Run the CI on PRs, while preventing it from running twice for non-fork
PRs by limiting the push event to protected branches. [1]

This restores the workflow trigger that was accidentally modified in
commit 2b85a56235 ("ci: simplify workflows").

[1]: https://github.com/danth/stylix/pull/749#issuecomment-2573437938
2025-01-06 21:39:22 +00:00
NAHO
4ceede7504
ci: prevent the Check workflow from running duplicated checks outputs
Prevent the Check workflow from running duplicated checks outputs.

The jq query should now be faster and arguably more readable.

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
d3bdbf0c5b
treewide: add and apply yamllint pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
2b85a56235
ci: simplify workflows
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
fe72c2306f
ci: update Ubuntu runner to ubuntu-24.04
Link: https://github.com/actions/runner-images/issues/10636
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
1aa931f6f1
ci: lock workflow dependencies to increase reproducibility
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
0d0af5f442
ci: consolidate Build and Lint workflows into single Check workflow
Consolidate the separate Build and Lint workflows into a unified Check
workflow, as linting is now integrated into the build process.

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
Daniel Thwaites
ccee633284
ci: prevent unexpected flake.nix and flake.lock inconsistencies (#674)
Prevent some unexpected flake.nix and flock.lock revision
inconsistencies by building configurations with the
--no-update-lock-file option:

> --no-update-lock-file
>
> Do not allow any updates to the flake's lock file.
>
> -- nix3-build(1)

Link: https://github.com/danth/stylix/pull/674

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-12 15:09:08 +01:00
Daniel Thwaites
5a69e8c657
ci: fix typo in target branch placeholder 2024-12-10 14:40:28 +00:00
Daniel Thwaites
b08769f64e
ci: implement automated backports (#664)
This is heavily based on the workflow used by Nixpkgs.
It allows us to automatically create backport pull requests by labelling
the original pull request.
Labels should use the format `backport «branch»`.
2024-12-10 14:34:42 +00:00
Daniel Thwaites
5ca31b6068
ci: update Actions related to GitHub Pages (#524) 2024-08-23 21:00:58 +01:00
NAHO
825490bb5e
ci: add GitHub Dependabot to keep GitHub Actions up-to-date (#517)
> [GitHub] Actions are often updated with bug fixes and new features to
> make automated processes more reliable, faster, and safer. When you
> enable Dependabot version updates for GitHub Actions, Dependabot will
> help ensure that references to actions in a repository's workflow.yml
> file and reusable workflows used inside workflows are kept up to date.
>
> [...]
>
> If a more recent version of the action is available, Dependabot will
> send you a pull request that updates the reference in the workflow
> file to the latest version.
>
> -- GitHub Docs
>    https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

Link: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#commit-message
Link: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
Link: https://github.com/danth/stylix/pull/517

Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
2024-08-23 20:22:33 +01:00
Daniel Thwaites
80e8e1e2f6
treewide: add linters and apply pending suggestions (#426) 2024-06-16 15:08:25 +01:00
Daniel Thwaites
1d51ce1de4
ci: also build on master and release branches (#281)
This populates the Magic Nix Cache so it can be shared between
pull requests.
2024-03-13 11:03:40 +00:00
Daniel Thwaites
1adbaaf45c
ci: checkout via Nix rather than action (#280)
This is closer to how users would install Stylix. It may also be
slightly faster since there's one less action to process.
2024-03-13 10:52:34 +00:00
Daniel Thwaites
d0b264e216
ci: use Magic Nix Cache (#279) 2024-03-13 10:34:57 +00:00
Daniel Thwaites
9197996704
Fix Actions workflow on MacOS 👷 ⬆️ 2023-06-27 15:31:49 +01:00
Daniel Thwaites
184255d021
Remove Cachix 👷
Packages are small and quick, no need for the extra complexity.
2023-03-30 20:06:05 +01:00
Daniel Thwaites
a3f9fa981b
Convert documentation to mdBook 📝 🔨 2023-03-29 00:54:14 +01:00
Daniel Thwaites
e626c4e54e
Enable CI for Darwin packages 👷 2023-03-28 18:10:59 +01:00
Daniel Thwaites
7073e660ed
Update Actions outputs 👷
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2023-02-26 15:05:03 +00:00
Daniel Thwaites
94a441c9e2
Only check builds for pull requests 👷 2023-02-25 15:34:52 +00:00
Daniel Thwaites
02a1a02386
Check builds on GitHub Actions 👷 2023-02-25 15:09:59 +00:00
Daniel Thwaites
f2682b343a
Move CI to Flakeaway 👷
https://github.com/danth/flakeaway
2022-08-25 01:09:39 +01:00