From 0f1430227d5ccb8002cc86e2640d48a51dc24567 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Sun, 11 Feb 2024 15:43:45 +0100 Subject: [PATCH] [CI] Forgejo tests --- .forgejo/workflows/build.yaml | 6 +++--- checks/default.nix | 5 ++++- packages/default.nix | 4 +++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 0db177d..6ca5e70 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -1,7 +1,7 @@ on: [push] jobs: test: - runs-on: nix + runs-on: nix steps: - - uses: actions/checkout@v3 - - run: nix --version + - uses: actions/checkout@v4 + - run: nix run github:Mic92/nix-fast-build -- --no-nom diff --git a/checks/default.nix b/checks/default.nix index 3629929..c671778 100644 --- a/checks/default.nix +++ b/checks/default.nix @@ -1,7 +1,10 @@ { - perSystem = {config, ...}: { + perSystem = {config, pkgs, ...}: { checks = { inherit (config.packages) ccrEmacs; + test = pkgs.hello.overrideDerivation (_: { + name = "test"; + }); }; }; } diff --git a/packages/default.nix b/packages/default.nix index a4d9425..8be51f3 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -49,10 +49,12 @@ cp $f $out/"libtree-sitter-$(basename $f)" done ''; - ccrEmacsWithoutPackages = pkgs.emacs-git.override { + ccrEmacsWithoutPackages = (pkgs.emacs-git.override { withSQLite3 = true; withWebP = true; withPgtk = true; + }).overrideAttrs { + name = "test"; }; ccrEmacs = (pkgs.emacsPackagesFor config.packages.ccrEmacsWithoutPackages).emacsWithPackages