ci: drop superfluous config

This commit is contained in:
winston 2024-05-16 02:06:57 +02:00
parent 3c08bc3963
commit f00d86d1a1
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 7 additions and 15 deletions

View file

@ -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 }
}

View file

@ -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: