updates
All checks were successful
CI / checks (push) Successful in 29s

This commit is contained in:
Robin Appelman 2025-06-18 15:43:59 +02:00
commit b7201d4a22
3 changed files with 34 additions and 22 deletions

View file

@ -1,6 +1,7 @@
# Mill Scale
An opinionated rust module for [flakelight](https://github.com/nix-community/flakelight).
An opinionated rust module for
[flakelight](https://github.com/nix-community/flakelight).
## Features
@ -46,7 +47,8 @@ Included checks:
}
```
Additionally, dependencies for the following crates should be automatically detected
Additionally, dependencies for the following crates should be automatically
detected
- openssl
- udev
@ -63,7 +65,8 @@ Additionally, dependencies for the following crates should be automatically dete
## Development tooling
Development tools for working with the following crates are automatically added to the dev-shell when needed
Development tools for working with the following crates are automatically added
to the dev-shell when needed
- cargo-insta
- sqlx
@ -92,7 +95,9 @@ jobs:
This automatically creates one job per check, allowing them to run in parallel.
This might be slower than running them all in the same runner depending on the time each check takes and the size of the intermediates that has to be downloaded from the cache.
This might be slower than running them all in the same runner depending on the
time each check takes and the size of the intermediates that has to be
downloaded from the cache.
```yaml
name: "CI"
@ -109,7 +114,9 @@ jobs:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- id: set-matrix
run: echo "matrix={\"check\":$(nix eval --json '.#checks.x86_64-linux' --apply 'builtins.attrNames')}" | tee -a $GITHUB_OUTPUT
run:
echo "matrix={\"check\":$(nix eval --json '.#checks.x86_64-linux'
--apply 'builtins.attrNames')}" | tee -a $GITHUB_OUTPUT
checks:
runs-on: ubuntu-latest
@ -141,13 +148,16 @@ Cross-compiling can be enabled with the following
}
```
This adds cross-compiled package with the same name as the target to the `packages`.
This adds cross-compiled package with the same name as the target to the
`packages`.
### Cross-compiling with GitHub Action
A `lib.crossMatrix` flake output is provided to help with setting up cross-compiling in CI.
A `lib.crossMatrix` flake output is provided to help with setting up
cross-compiling in CI.
This contains a list of targets and the binary suffix (e.g. `.exe`) for each target.
This contains a list of targets and the binary suffix (e.g. `.exe`) for each
target.
```yaml
on: [push, pull_request]
@ -185,4 +195,6 @@ jobs:
## Credits
This flake is based on [flakelight-rust](https://github.com/accelbread/flakelight-rust), credit for most ideas got to accelbread.
This flake is based on
[flakelight-rust](https://github.com/accelbread/flakelight-rust), credit for
most ideas got to accelbread.