mirror of
https://github.com/gytis-ivaskevicius/flake-utils-plus.git
synced 2024-10-05 20:47:49 +03:00
ci: update and speed up CI
This commit is contained in:
parent
1577ffa311
commit
724fbc3c84
30
.github/workflows/ci.yaml
vendored
30
.github/workflows/ci.yaml
vendored
@ -1,4 +1,5 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
@ -6,16 +7,24 @@ on:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
eval:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: nixbuild/nix-quick-install-action@v25
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
|
||||
# Quick eval
|
||||
- run: nix develop --command evalnix
|
||||
# Check formatting
|
||||
- run: nix develop --command fmt --check
|
||||
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v17
|
||||
with:
|
||||
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.8.0pre20220311_d532269/install
|
||||
|
||||
# Quick eval
|
||||
- run: nix develop --command evalnix
|
||||
- uses: nixbuild/nix-quick-install-action@v25
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
|
||||
# Execute /tests/*
|
||||
- run: nix develop --command check-derivation-outputs
|
||||
@ -23,6 +32,13 @@ jobs:
|
||||
- run: nix develop --command check-overlays-flow
|
||||
- run: nix develop --command check-hosts-config
|
||||
|
||||
build-examples:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: nixbuild/nix-quick-install-action@v25
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
|
||||
# Build /examples/*
|
||||
- run: nix develop --command build-home-manager+nur+neovim-Rick
|
||||
- run: nix develop --command build-minimal-multichannel-Hostname1
|
||||
@ -30,5 +46,3 @@ jobs:
|
||||
- run: nix develop --command build-exporters-Morty
|
||||
- run: nix develop --command build-darwin
|
||||
|
||||
# Check formatting
|
||||
- run: nix develop --command fmt --check
|
||||
|
@ -235,8 +235,8 @@ mergeAny otherArguments (
|
||||
{ inherit pkgs; }
|
||||
// (foldl' mkOutputs { } (attrNames systemOutputs))
|
||||
)
|
||||
# produces attrset in the shape of
|
||||
# { nixosConfigurations = {}; darwinConfigurations = {}; ... }
|
||||
# according to profile.output or the default `nixosConfigurations`
|
||||
// foldl' mergeAny { } (attrValues (mapAttrs configurationBuilder hosts))
|
||||
# produces attrset in the shape of
|
||||
# { nixosConfigurations = {}; darwinConfigurations = {}; ... }
|
||||
# according to profile.output or the default `nixosConfigurations`
|
||||
// foldl' mergeAny { } (attrValues (mapAttrs configurationBuilder hosts))
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user