[feat] ci: add forgejo ci

This commit is contained in:
Jalil David Salamé Messina 2024-06-02 16:18:21 +02:00
parent bd5737e4f2
commit a8fcc3bd4c
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 19 additions and 2 deletions

View 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 .#

View file

@ -14,8 +14,11 @@
in {
formatter = forEachSupportedSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
packages = forEachSupportedSystem (system: {
default = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {};
packages = forEachSupportedSystem (system: let
webnsupdate = nixpkgs.legacyPackages.${system}.callPackage ./default.nix {};
in {
inherit webnsupdate;
default = webnsupdate;
});
overlays.default = final: prev: {