Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | nix, ci: build with Crane | Alex Auvolat | 7 days | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes our dependency on cargo2nix, which was causing us some issues. Whereas cargo2nix creates one Nix derivation per crate, Crane uses only two derivations: 1. Build dependencies only 2. Build the final binary This means that during the second step, no caching can be done. For instance, if we do a change in garage_model, we need to recompile all of the Garage crates including those that do not depend on garage_model. On the upside, this allows all of the Garage crates to be built at once using cargo build logic, which is optimized for high parallelism and better pipelining between all of the steps of the build. All in all, this makes most builds faster than cargo2nix. A few other changes have been made to the build scripts and CI: - Unit tests are now run within a Nix derivation. In fact, we have different derivations to run the tests using LMDB and Sqlite as metadata db engines. - For debug builds, most CI steps now run in parallel (with the notable exception of the smoke test that runs after the build, which is inevitable). - We no longer pass the GIT_VERSION argument when building debug builds and running the tests. This means that dev binaries and test binaries don't know the exact version of Garage they are from. That shouldn't be an issue in most cases. - The not-dynamic.sh scripts has been fixed to fail if the file does not exist. | ||||
* | [nix-improvements] modernize Nix infrastructure | Alex Auvolat | 2024-02-09 | 1 | -0/+1 |
| | |||||
* | nix/common.nix: use pattern from nix-community/flake-compat | Florian Klink | 2023-07-16 | 1 | -9/+12 |
| | | | | | | This is still a bit confusing, as normally the flake.defaultNix attrset gets exposed via a top-level default.nix, but at least it brings us closer to that. | ||||
* | Update rust toolchain to 1.68 and simplify Nix stuffnix-update-simplify | Alex Auvolat | 2023-04-25 | 1 | -15/+10 |
| | |||||
* | Apply nixfmt to all .nix files; fix devshell and add it to cache | Alex Auvolat | 2023-01-26 | 1 | -7/+4 |
| | |||||
* | Cleanup nix scripts | Alex Auvolat | 2022-10-18 | 1 | -9/+1 |
| | |||||
* | Fix cargo2nix feature discovery | Alex Auvolat | 2022-10-18 | 1 | -1/+1 |
| | |||||
* | Fix i386 build with custom toolchain (armv6 unknown state) | Alex Auvolat | 2022-10-14 | 1 | -4/+4 |
| | |||||
* | cargo2nix unstable (patched), rust 1.63.0, nixpkgs 22.05 (32-bit builds are ↵ | Alex Auvolat | 2022-10-14 | 1 | -6/+14 |
| | | | | broken) | ||||
* | cargo2nix fix to fetchCrateGit | Alex Auvolat | 2022-08-29 | 1 | -4/+4 |
| | |||||
* | Run clippy in nix, leveraging nix caching ability | Quentin Dufour | 2022-07-26 | 1 | -5/+3 |
| | |||||
* | Patch cargo2nix openssl overrideci/arm_openssl | Quentin Dufour | 2022-03-17 | 1 | -3/+3 |
| | |||||
* | Add integration tests to Drone | Quentin Dufour | 2022-02-10 | 1 | -1/+3 |
| | |||||
* | Upgrade cargo2nix | Quentin Dufour | 2022-02-10 | 1 | -1/+2 |
| | |||||
* | Use Rust binaries from Nix instead of rustup | Quentin Dufour | 2021-10-29 | 1 | -6/+0 |
| | |||||
* | Build Garage with Nixfeature/static | Quentin Dufour | 2021-10-19 | 1 | -0/+27 |