Commit graph

30 commits

Author SHA1 Message Date
NAHO
57e963fd79
ci: check: use nothing-but-nix rampage protocol (#1978)
Some checks failed
Check / aarch64-darwin (push) Has been cancelled
Check / aarch64-linux (push) Has been cancelled
Check / x86_64-darwin (push) Has been cancelled
Check / x86_64-linux (push) Has been cancelled
Label Merge Conflicts / conflicts (push) Has been cancelled
Documentation / docs (push) Has been cancelled
Link: https://github.com/nix-community/stylix/pull/1978

Reviewed-by: 0xda157 <da157@voidq.com>
2025-11-20 19:29:42 -08:00
dependabot[bot]
c482552ae2
ci: bump actions/checkout from 5 to 6 (#2000)
Link: https://github.com/nix-community/stylix/pull/2000

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: 0xda157 <da157@voidq.com>
2025-11-20 22:37:56 +00:00
NAHO
97d412d949
ci: enable stricter Bash error checking
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-11-20 22:58:08 +01:00
NAHO
22d291b0a5
ci: check: use correct x86_64-darwin runner 2025-10-02 19:11:52 +02:00
NAHO
cbb9010d16
ci: check: bump x86_64-darwin runner to macos-15 2025-10-02 19:11:49 +02:00
dependabot[bot]
c592717e9f
ci: bump actions/checkout from 4 to 5 (#1838)
Link: https://github.com/nix-community/stylix/pull/1838

Signed-off-by: dependabot[bot] <support@github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-08-12 21:43:40 +02:00
awwpotato
cf71ad5aae
ci: use nix-community cachix (#1797) 2025-07-30 01:43:48 +01:00
NAHO
e334b3019e
ci: check: add wimpysworld/nothing-but-nix Action for larger Nix store
Co-authored-by: awwpotato <awwpotato@voidq.com>
2025-07-24 16:58:27 +02:00
awwpotato
e4cc192b26
ci: use cachix/install-nix-action (#1725)
Link: https://github.com/nix-community/stylix/pull/1725

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-19 23:41:22 +02:00
dependabot[bot]
a92b0ac9da ci: bump DeterminateSystems/nix-installer-action from 18 to 19
---
updated-dependencies:
- dependency-name: DeterminateSystems/nix-installer-action
  dependency-version: '19'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-15 18:36:32 -07:00
dependabot[bot]
3c73dee2db
ci: bump DeterminateSystems/nix-installer-action from 17 to 18 (#1582)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-03 21:11:17 -07:00
awwpotato
64b9f2c2df
stylix: yamlint ignore truthy for workflows (#1116)
Link: https://github.com/nix-community/stylix/pull/1116

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-31 11:44:33 -07:00
dependabot[bot]
2177469520 ci: bump DeterminateSystems/nix-installer-action from 16 to 17
Bumps [DeterminateSystems/nix-installer-action](https://github.com/determinatesystems/nix-installer-action) from 16 to 17.
- [Release notes](https://github.com/determinatesystems/nix-installer-action/releases)
- [Commits](https://github.com/determinatesystems/nix-installer-action/compare/v16...v17)

---
updated-dependencies:
- dependency-name: DeterminateSystems/nix-installer-action
  dependency-version: '17'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-24 17:31:12 -07: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
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
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
Renamed from .github/workflows/build.yml (Browse further)