ci: drop superfluous config
This commit is contained in:
parent
3c08bc3963
commit
f00d86d1a1
2 changed files with 7 additions and 15 deletions
12
.github/workflows/check.dhall
vendored
12
.github/workflows/check.dhall
vendored
|
@ -2,11 +2,7 @@ let GithubActions =
|
|||
https://github.com/regadas/github-actions-dhall/raw/master/package.dhall
|
||||
sha256:9c1ae46a1d56f1c22dbc9006cbb3e569806e75d02fded38fa102935b34980395
|
||||
|
||||
let NIX_CONFIG =
|
||||
''
|
||||
accept-flake-config = true
|
||||
extra-experimental-features = flakes nix-command
|
||||
''
|
||||
let NIX_CONFIG = "accept-flake-config = true"
|
||||
|
||||
let check =
|
||||
GithubActions.Job::{
|
||||
|
@ -22,10 +18,7 @@ let check =
|
|||
, GithubActions.Step::{
|
||||
, uses = Some "DeterminateSystems/magic-nix-cache-action@v6"
|
||||
}
|
||||
, GithubActions.Step::{
|
||||
, env = Some (toMap { NIX_CONFIG })
|
||||
, run = Some "nix flake check --show-trace"
|
||||
}
|
||||
, GithubActions.Step::{ run = Some "nix flake check --show-trace" }
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -34,5 +27,6 @@ in GithubActions.Workflow::{
|
|||
, on = GithubActions.On::{
|
||||
, push = Some GithubActions.Push::{ paths = Some [ "**.nix", "**.lock" ] }
|
||||
}
|
||||
, env = Some (toMap { NIX_CONFIG })
|
||||
, jobs = toMap { check }
|
||||
}
|
||||
|
|
10
.github/workflows/check.yml
vendored
10
.github/workflows/check.yml
vendored
|
@ -1,16 +1,14 @@
|
|||
env:
|
||||
NIX_CONFIG: "accept-flake-config = true"
|
||||
jobs:
|
||||
check:
|
||||
"runs-on": "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v4"
|
||||
- uses: "actions/checkout@v4.1.5"
|
||||
- uses: "DeterminateSystems/flake-checker-action@v7"
|
||||
- uses: "DeterminateSystems/nix-installer-action@v11"
|
||||
- uses: "DeterminateSystems/magic-nix-cache-action@v6"
|
||||
- env:
|
||||
NIX_CONFIG: |
|
||||
accept-flake-config = true
|
||||
extra-experimental-features = flakes nix-command
|
||||
run: "nix flake check --show-trace"
|
||||
- run: "nix flake check --show-trace"
|
||||
name: check
|
||||
'on':
|
||||
push:
|
||||
|
|
Loading…
Reference in a new issue