diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-10-28 10:04:14 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-10-29 11:34:01 +0200 |
commit | 93f8d59e4c71e6ff2f945dc2c632536f4530b13c (patch) | |
tree | 0d7171fd9c851b87d15bc3705eb394eb612d3ece /doc/book/src | |
parent | cc1caa87fbbc11338a650623c7776bf57402cd16 (diff) | |
download | garage-93f8d59e4c71e6ff2f945dc2c632536f4530b13c.tar.gz garage-93f8d59e4c71e6ff2f945dc2c632536f4530b13c.zip |
Extract toolchain build from the CIbug/rust-musl
Diffstat (limited to 'doc/book/src')
-rw-r--r-- | doc/book/src/development/release_process.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/book/src/development/release_process.md b/doc/book/src/development/release_process.md index 8591fd9f..e6f9e608 100644 --- a/doc/book/src/development/release_process.md +++ b/doc/book/src/development/release_process.md @@ -92,10 +92,21 @@ caching our development dependencies. *Currently there is no automatic garbage collection of the cache: we should monitor its growth. Hopefully, we can erase it totally without breaking any build, the next build will only be slower.* +In practise, we concluded that we do not want to cache all the compilation dependencies. +Instead, we want to cache the toolchain we use to build Garage each time we change it. +So we removed from Drone any automatic update of the cache and instead handle them manually with: + +``` +source ~/.awsrc +nix-shell --run 'refresh_toolchain' +``` + +Internally, it will run `nix-build` on `nix/toolchain.nix` and send the output plus its depedencies to the cache. + To erase the cache: ``` -mc rm --recursive --force 'garage/nix/*' +mc rm --recursive --force 'garage/nix/' ``` ### Publishing Garage |