Commit graph

456 commits

Author SHA1 Message Date
Cole Helbling a12e8e1700
Merge pull request #57 from DeterminateSystems/cole/fh-268-magic-nix-cache-401s-when-build-takes-too-long
Refresh GitHub Actions JWT in the background
2024-04-19 10:44:09 -07:00
Cole Helbling 0434d467d3 Refresh GitHub Actions JWT in the background
GitHub Actions JWTs are only valid for 5 minutes after being issued.

FlakeHub uses these JWTs for authentication, which means that after
those 5 minutes have passed and the token is expired, FlakeHub (and
by extension FlakeHub Cache) will no longer allow requests using this
token.

However, GitHub gives us a way to repeatedly request new tokens, so we
utilize that and refresh the token every 2 minutes (less than half of
the lifetime of the token).
2024-04-19 08:32:45 -07:00
Graham Christensen a59a765f73
Merge pull request #54 from DeterminateSystems/fixup-tags-prs
Fix releasing tags and prs
2024-04-12 10:08:44 -04:00
Eelco Dolstra fd6db08ef0
Merge pull request #52 from DeterminateSystems/build-hook-in-store
Move the post-build hook script to the Nix store
2024-04-12 10:37:39 +02:00
Graham Christensen 930038182b Fix releasing tags and prs 2024-04-11 22:27:58 -04:00
Luc Perkins 415818d147
Merge pull request #48 from DeterminateSystems/fix-dev-shells
Fix dev shell upload to cache
2024-04-11 23:23:35 -03:00
Graham Christensen b64bf3f4e5
Merge pull request #53 from DeterminateSystems/correlation
Use detsys_correlation if it is set
2024-04-11 22:11:18 -04:00
Graham Christensen 2d747212b0 Use detsys_correlation if it is set 2024-04-11 20:15:52 -04:00
Eelco Dolstra 4d66c1f308 Move the post-build hook script to the Nix store
In self-hosted GHA runners on NixOS, the runner has a different /tmp
than the Nix daemon, so the daemon would get "file not found" trying
to execute the post-build hook. As a workaround, move the script to
the Nix store so we can be sure that the daemon can access it.
2024-04-11 18:10:56 +02:00
Graham Christensen 1cff8aeb19
Merge pull request #49 from DeterminateSystems/dependabot/cargo/h2-0.3.26
Bump h2 from 0.3.24 to 0.3.26
2024-04-10 14:00:46 -04:00
Graham Christensen b176ae218a
Merge pull request #51 from DeterminateSystems/dependabot/cargo/whoami-1.5.1
Bump whoami from 1.4.1 to 1.5.1
2024-04-10 14:00:30 -04:00
Graham Christensen bc6dc0cf6c
Merge pull request #50 from DeterminateSystems/dependabot/cargo/mio-0.8.11
Bump mio from 0.8.8 to 0.8.11
2024-04-10 13:26:03 -04:00
dependabot[bot] a27ea631cf
Bump whoami from 1.4.1 to 1.5.1
Bumps [whoami](https://github.com/ardaku/whoami) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md)
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1)

---
updated-dependencies:
- dependency-name: whoami
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:59:51 +00:00
dependabot[bot] 252d4d424b
Bump mio from 0.8.8 to 0.8.11
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.8 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.8...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:59:41 +00:00
dependabot[bot] 030213d93c
Bump h2 from 0.3.24 to 0.3.26
Bumps [h2](https://github.com/hyperium/h2) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:59:33 +00:00
Luc Perkins 974048fcd6
Fix Clippy issues 2024-03-29 17:19:44 -03:00
Luc Perkins 65d2adf419
Remove shells array from matrix 2024-03-29 16:27:34 -03:00
Luc Perkins 898456dffe
Fix dev shell upload to cache 2024-03-29 16:26:26 -03:00
Eelco Dolstra 45bb610359
Merge pull request #47 from DeterminateSystems/cache-dev-shells
Cache dev shell in FlakeHub Cache
2024-03-29 16:01:23 +01:00
Luc Perkins ffddafa4f4
Cache dev shell in FlakeHub Cache 2024-03-28 11:30:13 -03:00
Eelco Dolstra 1a898bd613
Merge pull request #46 from DeterminateSystems/fix-post-build-hook
Fix post-build hook
2024-03-27 16:58:40 +01:00
Eelco Dolstra 150468c70d Fix post-build hook
"exec" needs to come after the environment variables.
2024-03-27 16:32:14 +01:00
Graham Christensen 7bd6ea0e84
Merge pull request #45 from DeterminateSystems/nits
Migrate nix-installer-action@mnc to main
2024-03-13 09:51:46 -04:00
Graham Christensen b619262a4e nix-installer-action@mnc to main 2024-03-13 09:29:55 -04:00
Graham Christensen 5e55d037f8
Merge pull request #44 from DeterminateSystems/flakehub-cache
Flakehub cache
2024-03-11 19:54:20 -04:00
Graham Christensen 6efe2c73c3 Switch to mnc 2024-03-11 13:15:26 -04:00
Graham Christensen 0c2a3b5d4f Drop the special branch 2024-03-11 13:05:54 -04:00
Graham Christensen fa32a1bad7 ? 2024-03-11 12:07:15 -04:00
Graham Christensen 1aca72fd3a Update the readme to include permissions 2024-03-09 14:30:48 -05:00
Graham Christensen 98db0bfe86 Revert "cache branch builds"
This reverts commit 1a5941c243.
2024-03-09 14:12:22 -05:00
Graham Christensen 16f1b8683c Revert "Revert "Revert "Revert "Revert "arm64: pin back to the v3 action to resolve a mysterious build failure"""""
This reverts commit daf7cd422e.
2024-03-09 14:06:17 -05:00
Graham Christensen daf7cd422e Revert "Revert "Revert "Revert "arm64: pin back to the v3 action to resolve a mysterious build failure""""
This reverts commit a2db427eef.
2024-03-09 12:55:24 -05:00
Graham Christensen 570434e14b D'oh: publish the closure for arm64-linux 2024-03-09 12:55:05 -05:00
Graham Christensen a2db427eef Revert "Revert "Revert "arm64: pin back to the v3 action to resolve a mysterious build failure"""
This reverts commit 24e7ebc681.
2024-03-09 12:41:31 -05:00
Graham Christensen 1a5941c243 cache branch builds 2024-03-09 11:44:41 -05:00
Graham Christensen 24e7ebc681 Revert "Revert "arm64: pin back to the v3 action to resolve a mysterious build failure""
This reverts commit e612684c6b.
2024-03-09 11:43:53 -05:00
Graham Christensen e612684c6b Revert "arm64: pin back to the v3 action to resolve a mysterious build failure"
This reverts commit 687c480220.
2024-03-09 11:38:28 -05:00
Graham Christensen 687c480220 arm64: pin back to the v3 action to resolve a mysterious build failure 2024-03-09 11:01:22 -05:00
Graham Christensen 64de95e342 0.2.0 2024-03-09 10:51:56 -05:00
Graham Christensen d32427b6c8 Start caching to FHC, especiall mac builds 2024-03-09 10:50:39 -05:00
Graham Christensen 605aa5bc43 Update the readme, release-branches workflow 2024-03-08 09:41:54 -05:00
Graham Christensen ad963d4fe7
Apply suggestions from code review 2024-03-06 13:38:35 -05:00
Graham Christensen bd5e681cb3 add flakehub-cache to the release branches for testing 2024-03-06 12:31:51 -05:00
Graham Christensen e23f5398df fixup: drop -priv 2024-03-06 12:17:56 -05:00
Graham Christensen d0115f624f
Merge branch 'main' into flakehub-cache 2024-03-06 09:38:44 -05:00
Eelco Dolstra fbf0bbed94
Merge pull request #35 from Kiskae/pass-through-429
Pass through HTTP 429 to the nix daemon
2024-03-04 18:04:20 +01:00
Graham Christensen 31b9becad9 Merge remote-tracking branch 'origin/main' into HEAD 2024-03-04 11:44:59 -05:00
Graham Christensen 77af0493d2
Apply suggestions from code review 2024-03-04 11:38:31 -05:00
Eelco Dolstra b2a2acdecc
Merge pull request #21 from DeterminateSystems/eelcodolstra/fh-224-magic-nix-cache-use-post-build-hook-for-the-gha-cache-as
Use post-build hook to trigger GHA cache uploads
2024-03-01 18:20:50 +01:00
Cole Helbling 619a6346c0 Merge remote-tracking branch 'origin/eelcodolstra/fh-224-magic-nix-cache-use-post-build-hook-for-the-gha-cache-as' into merge-against-upstream 2024-03-01 08:40:20 -08:00