Compare commits

..

4 Commits

Author SHA1 Message Date
356897045f Merge pull request 'chore: add flake check workflow' (#21) from workflow-init into master
All checks were successful
flake-check / build (push) Successful in 46s
Reviewed-on: #21
2025-08-27 21:08:53 +00:00
1e1f8cebe8 chore: add flake check workflow
All checks were successful
flake-check / build (pull_request) Successful in 48s
2025-08-27 23:05:32 +02:00
b21ad67cfc chore: add gdformat check to flake 2025-08-26 21:51:38 +02:00
4fffa8784a chore: remove version from image name 2025-08-26 20:23:43 +02:00
2 changed files with 41 additions and 2 deletions

16
.github/workflows/flake-check.yaml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: flake-check
on:
push:
branches: master
pull_request:
branches:
- master
jobs:
build:
runs-on: [ ubuntu-latest, homelab ]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
- run: nix flake check

View File

@@ -46,6 +46,30 @@
}
);
checks = forAllSystems (
{ pkgs }:
{
gdformat = pkgs.stdenvNoCC.mkDerivation {
name = "gdformat-check";
src = pkgs.lib.sources.sourceFilesBySuffices (pkgs.lib.cleanSource ./.) [ ".gd" ];
nativeBuildInputs = with pkgs; [
gdtoolkit_4
];
dontBuild = true;
doCheck = true;
checkPhase = ''
export HOME=$(mktemp -d)
find . -name "*.gd" -print0 | xargs -0 gdformat --check
echo "All .gd files are properly formatted"
'';
installPhase = "mkdir $out";
};
}
);
packages = forAllSystems (
{ pkgs }:
let
@@ -77,7 +101,6 @@
runHook postBuild
'';
installPhase = ''
find .
install -D -m 755 -t $out/libexec ./build/slopvivors
install -D -m 644 -t $out/libexec ./build/slopvivors.pck
install -d -m 755 $out/bin
@@ -158,7 +181,7 @@
'';
};
slopvivors_docker = pkgs.dockerTools.buildLayeredImage {
name = "slopvivors-docker-${version}";
name = "slopvivors-docker";
tag = version;
created = "now";
contents = [