mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
add ci job to check if schema is up to date
This commit is contained in:
parent
4e6d6e4b3a
commit
f8651c22ff
5 changed files with 26 additions and 5 deletions
|
|
@ -4,7 +4,6 @@
|
|||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|benches)(/.*)?"];
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "demostf-parser-codegen";
|
||||
|
|
@ -14,7 +13,7 @@ in
|
|||
--bin codegen
|
||||
'';
|
||||
|
||||
src = lib.traceVal src;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|benches)(/.*)?"];
|
||||
|
||||
buildType = "debug";
|
||||
buildFeatures = ["codegen"];
|
||||
|
|
@ -24,4 +23,6 @@ in
|
|||
cargoLock = {
|
||||
lockFile = ../Cargo.lock;
|
||||
};
|
||||
|
||||
meta.mainProgram = "codegen";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,4 +9,6 @@ final: prev: {
|
|||
${final.demostf-parser-codegen}/bin/codegen ${../test_data/short-2024.dem} props > $out
|
||||
${final.rustfmt}/bin/rustfmt $out
|
||||
'';
|
||||
demostf-parser-schema = final.callPackage ./schema.nix {};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|benches)(/.*)?"];
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "demostf-parser-schema";
|
||||
|
|
@ -14,7 +13,7 @@ in
|
|||
--bin schema
|
||||
'';
|
||||
|
||||
src = lib.traceVal src;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|benches)(/.*)?"];
|
||||
|
||||
buildType = "debug";
|
||||
buildFeatures = ["schema"];
|
||||
|
|
@ -24,4 +23,6 @@ in
|
|||
cargoLock = {
|
||||
lockFile = ../Cargo.lock;
|
||||
};
|
||||
|
||||
meta.mainProgram = "schema";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue