feat(ci): use nix to build extension zip
This commit is contained in:
parent
f8f2856683
commit
9400db5a9c
2 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
12
flake.nix
12
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; [
|
||||
|
|
Loading…
Reference in a new issue