This commit is contained in:
Mrrp 2024-12-10 16:26:49 -08:00
parent 18e0963d89
commit ea726ced89
6 changed files with 46 additions and 26 deletions

View file

@ -9,19 +9,16 @@
outputs = { self, nixpkgs, ...}:
let
pkgs = import nixpkgs { inherit self; };
supportedSystems = [ "x86_64-linux" ];
in {
devShells = builtins.map(system:
${system}.default = pkgs.mkShell {
buildInputs = [
# Run CI/CD actions locally
pkgs.act
];
shellHook = ''
alias run_workflows='act -W $PWD/.forgejo/workflows -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest --pull=false'
echo "Run 'run_workflows' to run the workflows locally"
'';
}
) ${supportedSystems};
}
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [
# Run CI/CD actions locally
pkgs.act
];
shellHook = ''
alias run_workflows='act -W $PWD/.forgejo/workflows -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest --pull=false'
echo "Run 'run_workflows' to run the workflows locally"
'';
};
};
}