From a8fcc3bd4c4f9a6bb4f08769900ee41eec7e2842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sun, 2 Jun 2024 16:18:21 +0200 Subject: [PATCH] [feat] ci: add forgejo ci --- .forgejo/workflows/check.yml | 14 ++++++++++++++ flake.nix | 7 +++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .forgejo/workflows/check.yml diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml new file mode 100644 index 0000000..1e807b3 --- /dev/null +++ b/.forgejo/workflows/check.yml @@ -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 .# diff --git a/flake.nix b/flake.nix index 6ae3357..6f2ea7e 100644 --- a/flake.nix +++ b/flake.nix @@ -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: {