Skip to content

Commit

Permalink
Add magic nix cache (again)
Browse files Browse the repository at this point in the history
Should speed things up a tiny bit, particularly for the PR builds which
can't use our cache (yet)
  • Loading branch information
Lorwp committed Feb 18, 2025
1 parent e8677b2 commit 3b868d2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/colmena.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ jobs:
extra_nix_config: |
accept-flake-config = true
# Why use this when we have our own? Github's cache in this case is likely faster than ours, where it's possible to use. Larger paths generally aren't, so they'll fall back onto our cache
- name: Init Nix Magic Cache
uses: DeterminateSystems/magic-nix-cache-action@main

Check warning on line 44 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, tgsatan)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 44 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, blockmoths)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 44 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, vpn)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 44 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, @relay-amd64)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 44 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, @staging)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 44 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (@relay-arm, ubuntu-24.04-arm)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol
with:
diagnostic-endpoint: ""
use-flakehub: false

- name: Setup attic Binary Cache
if: github.repository == 'tgstation-operations/infrastructure' && github.ref == 'refs/heads/main'
# Format for pointing to caches is server:cache in these commands
Expand Down Expand Up @@ -102,6 +109,12 @@ jobs:
extra-substituters = https://attic.tgstation13.org/tgstation-infrastructure
extra-trusted-public-keys = tgstation-infrastructure:tNpjd5GxK1xymRHsJdBLTpeDScA2mVPdKA/eIOLOE0I=
- name: Init Nix Magic Cache
uses: DeterminateSystems/magic-nix-cache-action@main

Check warning on line 113 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, tgsatan)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 113 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, blockmoths)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 113 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, vpn)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 113 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, @relay-amd64)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 113 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (ubuntu-24.04, @staging)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol

Check warning on line 113 in .github/workflows/colmena.yml

View workflow job for this annotation

GitHub Actions / Build (@relay-arm, ubuntu-24.04-arm)

Magic Nix Cache is deprecated

Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025. To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead. Replace... uses: DeterminateSystems/magic-nix-cache-action@main ...with... uses: DeterminateSystems/flakehub-cache-action@main For more details: https://dtr.mn/magic-nix-cache-eol
with:
diagnostic-endpoint: ""
use-flakehub: false

- name: Authenticate Attic Binary Cache
run: |
nix profile install nixpkgs#attic-client
Expand Down

0 comments on commit 3b868d2

Please sign in to comment.