crane-build: fix by github actions tests by skipping some test on aarch64

>     bcachefs::bindgen_test_layout_bch_replicas_padded__bindgen_ty_1
       >     bcachefs::bindgen_test_layout_bch_replicas_padded__bindgen_ty_2
       >     bcachefs::bindgen_test_layout_bch_replicas_padded__bindgen_ty_3
       >     bcachefs::bindgen_test_layout_bch_replicas_padded__bindgen_ty_4

Update flake.lock
This commit is contained in:
John Titor 2025-10-04 13:55:53 +05:30
parent e919b852b4
commit 9e4acfeae6
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0
2 changed files with 26 additions and 13 deletions

View File

@ -1,6 +1,7 @@
{
lib,
pkgs,
stdenvNoCC,
# build time
pkg-config,
@ -65,6 +66,17 @@ let
zlib
zstd
];
checkFlags = lib.optionals (stdenvNoCC.hostPlatform.isAarch64) [
"--skip=bcachefs::bindgen_test_layout_bch_replicas_padded__bindgen_ty_1"
"--skip=bcachefs::bindgen_test_layout_bch_replicas_padded__bindgen_ty_2"
"--skip=bcachefs::bindgen_test_layout_bch_replicas_padded__bindgen_ty_3"
"--skip=bcachefs::bindgen_test_layout_bch_replicas_padded__bindgen_ty_4"
];
checkPhaseCargoCommand = ''
cargo test --profile release -- --nocapture $checkFlags
'';
};
cargoArtifacts = craneLib.buildDepsOnly args;
@ -133,9 +145,10 @@ let
pnameSuffix = "-test";
buildPhaseCargoCommand = "";
checkPhaseCargoCommand = ''
make ''${enableParallelChecking:+-j''${NIX_BUILD_CORES}} $makeFlags libbcachefs.a
cargo test --profile release -- --nocapture
cargo test --profile release -- --nocapture $checkFlags
'';
}
);

24
flake.lock generated
View File

@ -2,11 +2,11 @@
"nodes": {
"crane": {
"locked": {
"lastModified": 1758686891,
"narHash": "sha256-Lq8JkwjSzv80T1i8KCvqAch75zwD98UKA+4atZjvfZ0=",
"lastModified": 1759511609,
"narHash": "sha256-uU6Dq5OUgI9pEiMDwZZhvsoxYD+36xKIkYyFXDr//6A=",
"owner": "ipetkov",
"repo": "crane",
"rev": "02063302383f43237602f5aea5a67766b08e4787",
"rev": "c5b48a59ccd5179ea626f47b05d2828c37fb31b7",
"type": "github"
},
"original": {
@ -36,11 +36,11 @@
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1756770412,
"narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
"lastModified": 1759362264,
"narHash": "sha256-wfG0S7pltlYyZTM+qqlhJ7GMw2fTF4mLKCIVhLii/4M=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "4524271976b625a4a605beefd893f270620fd751",
"rev": "758cf7296bee11f1706a574c77d072b8a7baa881",
"type": "github"
},
"original": {
@ -71,11 +71,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1758427187,
"narHash": "sha256-pHpxZ/IyCwoTQPtFIAG2QaxuSm8jWzrzBGjwQZIttJc=",
"lastModified": 1759381078,
"narHash": "sha256-gTrEEp5gEspIcCOx9PD8kMaF1iEmfBcTbO0Jag2QhQs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "554be6495561ff07b6c724047bdd7e0716aa7b46",
"rev": "7df7ff7d8e00218376575f0acdcc5d66741351ee",
"type": "github"
},
"original": {
@ -118,11 +118,11 @@
]
},
"locked": {
"lastModified": 1758681214,
"narHash": "sha256-8cW731vev6kfr58cILO2ZsjHwaPhm88dQ8Q6nTSjP9I=",
"lastModified": 1759544920,
"narHash": "sha256-yQwP0JOHi3Icq09GG5ufGuGrq2zIijglVFj3kkF2MHA=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "b12ed88d8d33d4f3cbc842bf29fad93bb1437299",
"rev": "bd3a63bbff2c4cb3cd48e9d49f54c2ccad457f70",
"type": "github"
},
"original": {