diff --git a/.forgejo/script/taskbot.nix b/.forgejo/script/taskbot.nix deleted file mode 100644 index da67a7d..0000000 --- a/.forgejo/script/taskbot.nix +++ /dev/null @@ -1,36 +0,0 @@ -let - # Tracking nixpkgs/nixos-25.11 as of 2026-03-02. - nixpkgsSrc = fetchTarball { - url = "https://github.com/NixOS/nixpkgs/archive/1267bb4920d0fc06ea916734c11b0bf004bbe17e.tar.gz"; - sha256 = "sha256:0sjac485rc346hpj5dvidh3lqdlq5lp7y7glicibgxqizrb90dpc"; - }; - # Tracking TaskBot main as of 2026-03-02. - taskbotSrc = fetchTarball { - url = "https://git.fa-fo.de/rahix/TaskBot/archive/0978ed7b5e86589728d538f0fe72e1a86018b0a5.tar.gz"; - sha256 = "sha256:0x9bw0vbhl8x83jik40qv4ylvp29dl2ixzrkn3l43f5hym5fqjca"; - }; - -in with import nixpkgsSrc {}; let - taskbot = pkgs.rustPlatform.buildRustPackage (f: { - pname = "taskbot"; - version = "main"; - - src = taskbotSrc; - - nativeBuildInputs = with pkgs; [ - pkg-config - ]; - - buildInputs = with pkgs; [ - openssl - ]; - - cargoLock.lockFile = "${taskbotSrc}/Cargo.lock"; - }); - -in pkgs.mkShell { - name = "taskbot"; - buildInputs = [ - taskbot - ]; -} diff --git a/.forgejo/workflows/taskbot.yml b/.forgejo/workflows/taskbot.yml deleted file mode 100644 index be3f5bd..0000000 --- a/.forgejo/workflows/taskbot.yml +++ /dev/null @@ -1,15 +0,0 @@ -on: - schedule: - - cron: '0 8,18 * * *' - # For testing: - # push: - # branches: - # - 'poc' - -jobs: - build: - runs-on: self-hosted-nixos-x86_64 - steps: - - uses: https://code.forgejo.org/actions/checkout@v4 - - name: Run TaskBot - run: nix-shell .forgejo/script/taskbot.nix --run "fafo-taskbot" diff --git a/README.md b/README.md index 751cf1b..c9bc579 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,4 @@ RUST_LOG=debug cargo run TaskBot is meant to run in CI where it automatically attaches to the issues of the repository it is running from. It should run on a daily schedule. -For NixOS runners, you can check -[`.forgejo/workflows/taskbot.yml`](./.forgejo/workflows/taskbot.yml) and the -associated [`taskbot.nix`](./.forgejo/script/taskbot.nix). +Documentation on CI integration is TBD.