[feat] ci: add forgejo ci
This commit is contained in:
parent
bd5737e4f2
commit
a8fcc3bd4c
2 changed files with 19 additions and 2 deletions
14
.forgejo/workflows/check.yml
Normal file
14
.forgejo/workflows/check.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: nixos
|
||||||
|
steps:
|
||||||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
- run: nix --version
|
||||||
|
- run: nix flake check --keep-going
|
||||||
|
build:
|
||||||
|
runs-on: nixos
|
||||||
|
steps:
|
||||||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
- run: nix --version
|
||||||
|
- run: nix build --print-build-logs .#
|
|
@ -14,8 +14,11 @@
|
||||||
in {
|
in {
|
||||||
formatter = forEachSupportedSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
|
formatter = forEachSupportedSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||||
|
|
||||||
packages = forEachSupportedSystem (system: {
|
packages = forEachSupportedSystem (system: let
|
||||||
default = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {};
|
webnsupdate = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {};
|
||||||
|
in {
|
||||||
|
inherit webnsupdate;
|
||||||
|
default = webnsupdate;
|
||||||
});
|
});
|
||||||
|
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
|
|
Loading…
Reference in a new issue