From 93f8d59e4c71e6ff2f945dc2c632536f4530b13c Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 28 Oct 2021 10:04:14 +0200 Subject: Extract toolchain build from the CI --- doc/book/src/development/release_process.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'doc') 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 -- cgit v1.2.3