From b259c6172903a6fad8e4fde9b9f9c149531c9d42 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 14 Jul 2023 10:17:41 +0100 Subject: [PATCH] DS-970: Add Magic Nix Cache and other workflow changes An assortment of GitHub Workflow changes, potentially including: - Enable DeterminateSystems/magic-nix-cache-action@main - Reference all DeterminateSystems actions via @main - Make update.yaml consistent across repos - Remove unnecessary github-token: from nix-installer-action - Update actions/checkout@v2 to actions/checkout@v3 --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 808d981..a3ee3f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,9 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v4 + uses: DeterminateSystems/nix-installer-action@main + - name: Enable magic Nix cache + uses: DeterminateSystems/magic-nix-cache-action@main - name: Record existing bundle hash run: | echo "BUNDLE_HASH=$(sha256sum >$GITHUB_ENV @@ -38,7 +40,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v4 + uses: DeterminateSystems/nix-installer-action@main with: extra-conf: | narinfo-cache-negative-ttl = 0 @@ -54,7 +56,7 @@ jobs: # steps: # - uses: actions/checkout@v3 # - name: Install Nix - # uses: DeterminateSystems/nix-installer-action@v4 + # uses: DeterminateSystems/nix-installer-action@main # with: # extra-conf: | # narinfo-cache-negative-ttl = 0