diff --git a/.forgejo/workflows/build-ext.yml b/.forgejo/workflows/build-ext.yml index 5180641..304c554 100644 --- a/.forgejo/workflows/build-ext.yml +++ b/.forgejo/workflows/build-ext.yml @@ -15,9 +15,9 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Build extension - run: ./build-ext.sh + run: nix build .#extension - name: Upload extension uses: actions/upload-artifact@v4 with: name: aci-ext.zip - path: aci-ext.zip + path: result diff --git a/flake.nix b/flake.nix index d338329..54f9df8 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,18 @@ WorkingDir = "/state"; }; }; + + extension = pkgs.stdenv.mkDerivation { + name = "aci-extension.zip"; + inherit version; + src = ./extension; + phases = "installPhase"; + nativeBuildInputs = [ pkgs.zip ]; + installPhase = '' + cd $src/ + zip -r $out * + ''; + }; }; devShells.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [