Skip to content

Commit

Permalink
chore(nix): verify MSRV with ipv6 feature enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
EHfive committed Jan 24, 2025
1 parent a82259a commit 18cea36
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
preset: [static, ipv6_static, verify_msrv_static]
preset: [static, ipv6_static, verify_msrv_ipv6_static]
arch: [x86_64, aarch64]

runs-on: ubuntu-latest
Expand Down
28 changes: 18 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
}
);
crossPackage = { ... }@args: crossPackage' ({ inherit pkgs; } // args);

verifyMsrvArgs = {
rustVersion = "1.80.0";
enableStatic = true;
enableIpv6 = true;
};
in
{
legacyPackages = (import nixpkgs) {
Expand All @@ -71,16 +77,18 @@
default = defaultPackage;
ipv6 = defaultPackage;

verify_msrv_static-x86_64-unknown-linux-musl = crossPackage {
crossPkgs = pkgs.pkgsCross.musl64;
enableStatic = true;
rustVersion = "1.80.0";
};
verify_msrv_static-aarch64-unknown-linux-musl = crossPackage {
crossPkgs = pkgs.pkgsCross.aarch64-multiplatform-musl;
enableStatic = true;
rustVersion = "1.80.0";
};
verify_msrv_ipv6_static-x86_64-unknown-linux-musl = crossPackage (
{
crossPkgs = pkgs.pkgsCross.musl64;
}
// verifyMsrvArgs
);
verify_msrv_ipv6_static-aarch64-unknown-linux-musl = crossPackage (
{
crossPkgs = pkgs.pkgsCross.aarch64-multiplatform-musl;
}
// verifyMsrvArgs
);

static-x86_64-unknown-linux-musl = crossPackage {
crossPkgs = pkgs.pkgsCross.musl64;
Expand Down

0 comments on commit 18cea36

Please sign in to comment.