Commit graph

37 commits

Author SHA1 Message Date
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
Daniel Thwaites
308f7e27cb
Don't run docs workflow for pull requests 👷
The workflow attempts to skip the deployment step when it is run on other
branches, however environment protection rules are checked before this, causing
a failure.
2022-08-10 22:19:00 +01:00
Daniel Thwaites
5918310bcc
Update docs workflow 👷 ⬆️ 2022-08-02 19:26:14 +00:00
Daniel Thwaites
0ea346a423
Publish list of NixOS options on GitHub Pages 📝 2022-07-30 15:31:58 +01:00
Daniel Thwaites
ac8982e417
Show build logs in CI 👷 2022-07-27 14:49:50 +01:00
Daniel Thwaites
5dc1f3cdea
Upload palette generator to Cachix 👷 2022-07-27 12:36:53 +01:00
Daniel Thwaites
80752af316
Add CI workflow 👷 2022-06-15 15:24:05 +01:00
Daniel Thwaites
3b47dde0da
Remove auto-beautifier 👷 2022-04-04 10:44:13 +01:00
Daniel Thwaites
ed67f81454
Add gitmoji to beautify workflow 👷 2021-10-16 10:53:54 +01:00
Daniel Thwaites
d8a81715d6
Run Nixfmt using GitHub Actions 2021-06-16 22:35:15 +01:00