ci: cache nix-store using nix-community/cache-nix-action #65

Merged
teutat3s merged 2 commits from ci/enable-cache into main 2023-12-13 00:59:09 +00:00
Owner
Related repo: https://git.pub.solar/pub-solar/actions-base-image
teutat3s added 1 commit 2023-11-18 18:46:35 +00:00
ci: try to enable cache for nix store
Some checks failed
Flake checks / Check (pull_request) Failing after 23m55s
766f1fa6a2
b12f approved these changes 2023-11-18 21:36:09 +00:00
teutat3s added 1 commit 2023-11-19 15:13:33 +00:00
ci: try to enable cache for nix store
Some checks failed
Flake checks / Check (pull_request) Failing after 24s
2e639e9bd9
using https://github.com/nix-community/cache-nix-action
teutat3s added 1 commit 2023-11-19 15:33:34 +00:00
ci: try to set USER manually
Some checks failed
Flake checks / Check (pull_request) Failing after 7s
96f12c7b10
teutat3s added 1 commit 2023-11-19 15:34:33 +00:00
ci: add sudo dependency
Some checks failed
Flake checks / Check (pull_request) Failing after 28s
30ae5dad41
teutat3s added 1 commit 2023-11-19 15:36:09 +00:00
ci: add zstd dependency
Some checks failed
Flake checks / Check (pull_request) Failing after 19s
0c3cb9f90b
teutat3s added 1 commit 2023-11-19 15:43:12 +00:00
ci: try to add group nixbld
Some checks failed
Flake checks / Check (pull_request) Failing after 19s
35943b90cd
axeman approved these changes 2023-12-08 15:47:14 +00:00
axeman left a comment
Owner

Would be nice to use cachix, so we can benefit from nix builds in CI. But this is already an improvement so feel free to merge.

Would be nice to use cachix, so we can benefit from nix builds in CI. But this is already an improvement so feel free to merge.
teutat3s changed title from ci: try to enable cache for nix store to WIP ci: try to enable cache for nix store 2023-12-11 11:16:49 +00:00
teutat3s changed title from WIP ci: try to enable cache for nix store to WIP: ci: try to enable cache for nix store 2023-12-11 11:17:02 +00:00
teutat3s force-pushed ci/enable-cache from 35943b90cd to 4ada18c05c 2023-12-11 18:15:19 +00:00 Compare
teutat3s force-pushed ci/enable-cache from 4ada18c05c to 54d67b5f75 2023-12-11 18:16:52 +00:00 Compare
teutat3s force-pushed ci/enable-cache from 54d67b5f75 to b15641bee3 2023-12-11 18:27:21 +00:00 Compare
teutat3s force-pushed ci/enable-cache from b15641bee3 to 970ccaf040 2023-12-11 18:29:44 +00:00 Compare
teutat3s added 1 commit 2023-12-11 18:43:13 +00:00
wip: don't load nixConfig?
Some checks failed
Flake checks / Check (pull_request) Failing after 15s
07be5840fe
teutat3s added 1 commit 2023-12-11 18:48:13 +00:00
wip: fix trailing whitespace
Some checks failed
Flake checks / Check (pull_request) Failing after 14s
08af708a76
teutat3s added 1 commit 2023-12-11 18:50:08 +00:00
wip: hashFiles is a GH actions funtion
All checks were successful
Flake checks / Check (pull_request) Successful in 8m5s
dc950eb56f
teutat3s added 1 commit 2023-12-11 19:43:20 +00:00
wip: test hashing flake.lock file
Some checks reported warnings
Flake checks / Check (pull_request) Has been cancelled
4f6a1068b7
teutat3s added 1 commit 2023-12-11 19:48:47 +00:00
wip: check out repo first
All checks were successful
Flake checks / Check (pull_request) Successful in 15m28s
14bef5846e
teutat3s added 1 commit 2023-12-12 08:30:53 +00:00
wip: test hashed ci
All checks were successful
Flake checks / Check (pull_request) Successful in 16m19s
b919ffe103
teutat3s added 1 commit 2023-12-12 16:55:49 +00:00
wip: fix hash
All checks were successful
Flake checks / Check (pull_request) Successful in 5m40s
4a9fa26d02
teutat3s added 1 commit 2023-12-12 23:33:34 +00:00
wip: add echo output if no cache hit
All checks were successful
Flake checks / Check (pull_request) Successful in 1m38s
b62c2a3db4
teutat3s added 1 commit 2023-12-13 00:09:00 +00:00
wip: use runner.os variable
All checks were successful
Flake checks / Check (pull_request) Successful in 13m59s
976dd2064e
Author
Owner

Would be nice to use cachix, so we can benefit from nix builds in CI. But this is already an improvement so feel free to merge.

cachix is already in place.

- name: Prepare cachix
uses: https://github.com/cachix/cachix-action@v12
with:
name: pub-solar
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

This actually works now after some network debugging for the cache to work. Merging now 🎉

> Would be nice to use cachix, so we can benefit from nix builds in CI. But this is already an improvement so feel free to merge. cachix is already in place. https://git.pub.solar/pub-solar/infra/src/commit/a3ce107c738acb41dab523f0bc6a55c00e4aec01/.forgejo/workflows/check.yml#L10-L14 This actually works now after some network debugging for the cache to work. Merging now 🎉
teutat3s changed title from WIP: ci: try to enable cache for nix store to ci: try to enable cache for nix store 2023-12-13 00:13:29 +00:00
teutat3s added 1 commit 2023-12-13 00:27:59 +00:00
wip: test cache purging
All checks were successful
Flake checks / Check (pull_request) Successful in 3m29s
5f00784996
teutat3s added 1 commit 2023-12-13 00:35:51 +00:00
wip: final
All checks were successful
Flake checks / Check (pull_request) Successful in 3m35s
9e525baa32
teutat3s force-pushed ci/enable-cache from 9e525baa32 to e4c4644a8e 2023-12-13 00:43:26 +00:00 Compare
teutat3s added 1 commit 2023-12-13 00:56:46 +00:00
ci: dependencies now included in actions-base-image
All checks were successful
Flake checks / Check (pull_request) Successful in 3m24s
ebc7abf685
https://git.pub.solar/pub-solar/actions-base-image
teutat3s changed title from ci: try to enable cache for nix store to ci: cache nix-store using nix-community/cache-nix-action 2023-12-13 00:58:31 +00:00
teutat3s merged commit efe31cadd9 into main 2023-12-13 00:59:09 +00:00
teutat3s deleted branch ci/enable-cache 2023-12-13 00:59:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pub-solar/infra#65
No description provided.