Skip to content

Commit

Permalink
Reenable caching for nix workflows
Browse files Browse the repository at this point in the history
This has been fixed upstream. Pull the change in early to speed up all
our workflows significantly.

Fixes: TraceMachina#464
  • Loading branch information
aaronmondal committed Jan 25, 2024
1 parent 39c6678 commit 9164bd6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
uses: >- # v7
DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# TODO(aaronmondal): Remove after:
# https://github.com/DeterminateSystems/nix-installer/pull/820
nix-installer-pr: 820

# TODO(aaronmondal): Caching is flaky for this workflow.
# See: https://github.com/DeterminateSystems/magic-nix-cache/issues/32
# - name: Cache Nix derivations
# uses: >- # Custom commit, last pinned at 2023-11-17.
# DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1
- name: Cache Nix derivations
uses: >- # Custom commit, last pinned at 2023-11-17.
DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1
- name: Test image
run: |
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/lre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
- name: Install Nix
uses: >- #v7
DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
with:
# TODO(aaronmondal): Remove after:
# https://github.com/DeterminateSystems/nix-installer/pull/820
nix-installer-pr: 820

- name: Cache Nix derivations
uses: >- # Custom commit, last pinned at 2023-11-17.
Expand Down Expand Up @@ -54,12 +58,14 @@ jobs:
- name: Install Nix
uses: >- #v7
DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
with:
# TODO(aaronmondal): Remove after:
# https://github.com/DeterminateSystems/nix-installer/pull/820
nix-installer-pr: 820

# TODO(aaronmondal): Caching is flaky for this workflow.
# See: https://github.com/DeterminateSystems/magic-nix-cache/issues/32
# - name: Cache Nix derivations
# uses: >- # Custom commit, last pinned at 2023-11-17.
# DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1
- name: Cache Nix derivations
uses: >- # Custom commit, last pinned at 2023-11-17.
DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1
- name: Start Kubernetes cluster (Infra)
run: >
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
- name: Install Nix
uses: >- #v7
DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
with:
# TODO(aaronmondal): Remove after:
# https://github.com/DeterminateSystems/nix-installer/pull/820
nix-installer-pr: 820

- name: Cache Nix derivations
uses: >- # Custom commit, last pinned at 2023-11-17.
Expand Down Expand Up @@ -58,6 +62,10 @@ jobs:
- name: Install Nix
uses: >- #v7
DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
with:
# TODO(aaronmondal): Remove after:
# https://github.com/DeterminateSystems/nix-installer/pull/820
nix-installer-pr: 820

- name: Cache Nix derivations
uses: >- # Custom commit, last pinned at 2023-11-17.
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
- name: Install Nix
uses: >- #v7
DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
with:
# TODO(aaronmondal): Remove after:
# https://github.com/DeterminateSystems/nix-installer/pull/820
nix-installer-pr: 820

- name: Cache Nix derivations
uses: >- # Custom commit, last pinned at 2023-11-17.
DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tagged_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
uses: >- # v7
DeterminateSystems/nix-installer-action@5620eb4af6b562c53e4d4628c0b6e4f9d9ae8612
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# TODO(aaronmondal): Remove after:
# https://github.com/DeterminateSystems/nix-installer/pull/820
nix-installer-pr: 820

- name: Test image
run: |
Expand Down

0 comments on commit 9164bd6

Please sign in to comment.