feat: nix: CI without depending on flakehub.com
This commit is contained in:
parent
e958813ccb
commit
95316ced46
19
.github/workflows/nix-update-lock.yaml
vendored
Normal file
19
.github/workflows/nix-update-lock.yaml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * 0'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-flake-inputs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
- uses: DeterminateSystems/update-flake-lock@main
|
||||||
|
with:
|
||||||
|
pr-title: "Update flake.lock"
|
||||||
|
pr-labels: |
|
||||||
|
dependencies
|
||||||
|
automated
|
||||||
|
- uses: DeterminateSystems/flake-checker-action@main
|
||||||
|
- run: nix flake check --all-systems
|
||||||
13
.github/workflows/nix.yaml
vendored
13
.github/workflows/nix.yaml
vendored
@ -4,7 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- nix
|
|
||||||
tags:
|
tags:
|
||||||
- v?[0-9]+.[0-9]+.[0-9]+*
|
- v?[0-9]+.[0-9]+.[0-9]+*
|
||||||
|
|
||||||
@ -14,7 +13,11 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
nix-ci:
|
nix-ci:
|
||||||
uses: DeterminateSystems/ci/.github/workflows/workflow.yml@main
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
steps:
|
||||||
id-token: write
|
- uses: actions/checkout@v4
|
||||||
contents: read
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
with:
|
||||||
|
determinate: true
|
||||||
|
- uses: DeterminateSystems/flake-checker-action@main
|
||||||
|
- run: nix flake check --all-systems
|
||||||
|
|||||||
@ -26,13 +26,17 @@ rec {
|
|||||||
inherit system;
|
inherit system;
|
||||||
overlays = [devshell.overlays.default];
|
overlays = [devshell.overlays.default];
|
||||||
};
|
};
|
||||||
in {
|
in rec {
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
packages = {
|
packages = {
|
||||||
headplane = pkgs.callPackage ./nix/package.nix {};
|
headplane = pkgs.callPackage ./nix/package.nix {};
|
||||||
headplane-agent = pkgs.callPackage ./nix/agent.nix {};
|
headplane-agent = pkgs.callPackage ./nix/agent.nix {};
|
||||||
};
|
};
|
||||||
devShell = pkgs.devshell.mkShell rec {
|
checks.default = pkgs.symlinkJoin {
|
||||||
|
name = "headplane-with-agent";
|
||||||
|
paths = [packages.headplane packages.headplane-agent];
|
||||||
|
};
|
||||||
|
devShells.default = pkgs.devshell.mkShell rec {
|
||||||
name = description;
|
name = description;
|
||||||
motd = let
|
motd = let
|
||||||
providedPackages = pkgs.lib.concatStringsSep "\n" (
|
providedPackages = pkgs.lib.concatStringsSep "\n" (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user