mirror of
https://github.com/DeterminateSystems/determinate-nix-action.git
synced 2026-02-25 07:07:11 +00:00
Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73327eb48f | ||
|
|
681d8e8bfd | ||
|
|
f9ebef2760 | ||
|
|
89ab342bd4 | ||
|
|
152ce8ebd8 | ||
|
|
0637893efc | ||
|
|
1d699fc25d | ||
|
|
95732e95d7 |
5 changed files with 22 additions and 15 deletions
11
README.md
11
README.md
|
|
@ -52,8 +52,8 @@ jobs:
|
|||
id-token: write
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.1
|
||||
- uses: DeterminateSystems/determinate-nix-action@main # or v3.14.0 to pin to a release
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: DeterminateSystems/determinate-nix-action@main # or v3.16.3 to pin to a release
|
||||
- run: nix build .
|
||||
```
|
||||
|
||||
|
|
@ -67,10 +67,10 @@ jobs:
|
|||
Unlike `DeterminateSystems/nix-installer-action`, we fully support explicit version pinning for maximum consistency.
|
||||
This Action is **automatically tagged** for every Determinate Nix release, giving you complete control over your CI environment:
|
||||
|
||||
📍 Pinning to `DeterminateSystems/determinate-nix-action@v3.14.0` guarantees:
|
||||
📍 Pinning to `DeterminateSystems/determinate-nix-action@v3.16.3` guarantees:
|
||||
|
||||
- Same `nix-installer-action` revision every time
|
||||
- Consistent Determinate Nix v3.14.0 installation
|
||||
- Consistent Determinate Nix v3.16.3 installation
|
||||
- Reproducible CI workflows, even years later
|
||||
|
||||
✨ Using `@main` instead? You'll:
|
||||
|
|
@ -102,6 +102,7 @@ updates:
|
|||
| `github-server-url` | The URL for the GitHub server, to use with the `github-token` token. Defaults to the current GitHub server, supporting GitHub Enterprise Server automatically. Only change this value if the provided `github-token` is for a different GitHub server than the current server. | | `${{ github.server_url }}` |
|
||||
| `github-token` | A GitHub token for making authenticated requests (which have a higher rate-limit quota than unauthenticated requests) | | `${{ github.token }}` |
|
||||
| `trust-runner-user` | Whether to make the runner user trusted by the Nix daemon | | `true` |
|
||||
| `summarize` | Whether to add a build summary and timeline chart to the GitHub job summary | | `true` |
|
||||
| `force-no-systemd` | Force using other methods than systemd to launch the daemon. This setting is automatically enabled when necessary. | | `false` |
|
||||
| `init` | The init system to configure, requires `planner: linux-multi` (allowing the choice between `none` or `systemd`) | | |
|
||||
| `kvm` | Automatically configure the GitHub Actions Runner for NixOS test supports, if the host supports it. | | `true` |
|
||||
|
|
@ -112,7 +113,7 @@ updates:
|
|||
| `source-branch` | The branch of `nix-installer` to use (conflicts with `source-tag`, `source-revision`, `source-pr`) | | |
|
||||
| `source-pr` | The PR of `nix-installer` to use (conflicts with `source-tag`, `source-revision`, `source-branch`) | | |
|
||||
| `source-revision` | The revision of `nix-installer` to use (conflicts with `source-tag`, `source-branch`, `source-pr`) | | |
|
||||
| `source-tag` | The tag of `nix-installer` to use (conflicts with `source-revision`, `source-branch`, `source-pr`) | | `v3.14.0` |
|
||||
| `source-tag` | The tag of `nix-installer` to use (conflicts with `source-revision`, `source-branch`, `source-pr`) | | `v3.16.3` |
|
||||
| `source-url` | A URL pointing to a `nix-installer` executable | | |
|
||||
| `backtrace` | The setting for `RUST_BACKTRACE` (see https://doc.rust-lang.org/std/backtrace/index.html#environment-variables) | | |
|
||||
| `diagnostic-endpoint` | Diagnostic endpoint url where the installer sends data to. To disable set this to an empty string. | | `-` |
|
||||
|
|
|
|||
|
|
@ -22,6 +22,10 @@
|
|||
"description": "Whether to make the runner user trusted by the Nix daemon",
|
||||
"default": true
|
||||
},
|
||||
"summarize": {
|
||||
"description": "Whether to add a build summary and timeline chart to the GitHub job summary",
|
||||
"default": true
|
||||
},
|
||||
"force-no-systemd": {
|
||||
"description": "Force using other methods than systemd to launch the daemon. This setting is automatically enabled when necessary.",
|
||||
"required": false,
|
||||
|
|
@ -68,7 +72,7 @@
|
|||
"source-tag": {
|
||||
"description": "The tag of `nix-installer` to use (conflicts with `source-revision`, `source-branch`, `source-pr`)",
|
||||
"required": false,
|
||||
"default": "v3.14.0"
|
||||
"default": "v3.16.3"
|
||||
},
|
||||
"source-url": {
|
||||
"description": "A URL pointing to a `nix-installer` executable",
|
||||
|
|
@ -101,12 +105,13 @@
|
|||
"using": "composite",
|
||||
"steps": [
|
||||
{
|
||||
"uses": "DeterminateSystems/nix-installer-action@e4fb5e65d88bc1ed7f248eda4e6645126ed90438",
|
||||
"uses": "DeterminateSystems/nix-installer-action@95f009f8cba987d36d7e3396d29de81b2883654a",
|
||||
"with": {
|
||||
"extra-conf": "${{ inputs.extra-conf }}",
|
||||
"github-server-url": "${{ inputs.github-server-url }}",
|
||||
"github-token": "${{ inputs.github-token }}",
|
||||
"trust-runner-user": "${{ inputs.trust-runner-user }}",
|
||||
"summarize": "${{ inputs.summarize }}",
|
||||
"force-no-systemd": "${{ inputs.force-no-systemd }}",
|
||||
"init": "${{ inputs.init }}",
|
||||
"kvm": "${{ inputs.kvm }}",
|
||||
|
|
|
|||
10
flake.lock
generated
10
flake.lock
generated
|
|
@ -2,12 +2,12 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1765186076,
|
||||
"narHash": "sha256-hM20uyap1a0M9d344I692r+ik4gTMyj60cQWO+hAYP8=",
|
||||
"rev": "addf7cf5f383a3101ecfba091b98d0a1263dc9b8",
|
||||
"revCount": 908783,
|
||||
"lastModified": 1771848320,
|
||||
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
||||
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
||||
"revCount": 953160,
|
||||
"type": "tarball",
|
||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.908783%2Brev-addf7cf5f383a3101ecfba091b98d0a1263dc9b8/019b03a0-b1e4-7f2a-9d10-ad8434116660/source.tar.gz"
|
||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.953160%2Brev-2fc6539b481e1d2569f25f8799236694180c0993/019c8e05-d2f6-7c7e-9ead-612154b18bfb/source.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ keep_inputs = [
|
|||
"github-server-url",
|
||||
"github-token",
|
||||
"trust-runner-user",
|
||||
"summarize",
|
||||
# Advanced run-time environment options
|
||||
"force-no-systemd",
|
||||
"init",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"nix_installer_action_revision": "e4fb5e65d88bc1ed7f248eda4e6645126ed90438",
|
||||
"determinate_nix_tag": "v3.14.0",
|
||||
"checkout_action_tag": "v6.0.1"
|
||||
"nix_installer_action_revision": "95f009f8cba987d36d7e3396d29de81b2883654a",
|
||||
"determinate_nix_tag": "v3.16.3",
|
||||
"checkout_action_tag": "v6.0.2"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue