diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..b67ef08 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,59 @@ +name: CI + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + flake-check: + name: Flake Check + runs-on: nix + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Validate flake + run: nix flake check --print-build-logs + + build-all: + name: Build All Packages + runs-on: nix + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build all MCP servers + run: nix build .#default --print-build-logs + + build-individual: + name: Build Individual Packages + runs-on: nix + strategy: + fail-fast: false + matrix: + package: + - academic-search-mcp-server + - duckduckgo-mcp-server + - kindly-web-search-mcp-server + - manim-mcp-server + - pdf-reader-mcp + - rust-research-mcp + - zotero-mcp + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build ${{ matrix.package }} + run: nix build .#${{ matrix.package }} --print-build-logs + + - name: Test executable exists + run: | + if [ -e "./result/bin/${{ matrix.package }}" ]; then + echo "✓ Executable found: ${{ matrix.package }}" + ./result/bin/${{ matrix.package }} --help || true + else + echo "⚠ No executable found at ./result/bin/${{ matrix.package }}" + ls -la ./result/bin/ || echo "No bin directory" + fi diff --git a/flake.nix b/flake.nix index 3d8e838..9644096 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; - jailed-agents.url = "git+ssh://gitea@gitea.bueso.eu/luis/jailed-agents"; + jailed-agents.url = "git+https://gitea@gitea.bueso.eu/luis/jailed-agents"; }; outputs =