Skip to content

Commit

Permalink
ci: comment out cache merging job
Browse files Browse the repository at this point in the history
  • Loading branch information
develop7 committed Nov 20, 2023
1 parent 1803bcb commit 4169e61
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,30 +137,32 @@ jobs:
path: postgrest-docker.tar.gz
if-no-files-found: error

merge-nix-caches-linux:
name: "Merge Nix caches (Linux)"
needs: [Test-Nix, Test-Pg-Nix, Test-Memory-Nix, Build-Static-Nix, Lint-Style]
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
cache-id: ['static-nix', 'test-pg', 'style', 'test-memory']
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v26
with:
nix_version: '2.13.6'
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v4
with:
key: cache-nix-${{ runner.os }}-common-${{ hashFiles('nix/**/*.nix') }}
extra-restore-keys: |
cache-nix-${{ runner.os }}-cid-
purge: true
purge-keys: |
cache-nix-${{ runner.os }}-cid-
cache-nix-${{ runner.os }}-common-
purge-created-max-age: 0
# TODO: Enable this again in a PR by PostgREST admins, because regular users don't have permission to delete cache entries, which this job does.
#
# merge-nix-caches-linux:
# name: "Merge Nix caches (Linux)"
# needs: [Test-Nix, Test-Pg-Nix, Test-Memory-Nix, Build-Static-Nix, Lint-Style]
# runs-on: ubuntu-latest
# strategy:
# max-parallel: 1
# matrix:
# cache-id: ['static-nix', 'test-pg', 'style', 'test-memory']
# steps:
# - uses: actions/checkout@v4
# - uses: nixbuild/nix-quick-install-action@v26
# with:
# nix_version: '2.13.6'
# - name: Restore and cache Nix store
# uses: nix-community/cache-nix-action@v4
# with:
# key: cache-nix-${{ runner.os }}-common-${{ hashFiles('nix/**/*.nix') }}
# extra-restore-keys: |
# cache-nix-${{ runner.os }}-cid-
# purge: true
# purge-keys: |
# cache-nix-${{ runner.os }}-cid-
# cache-nix-${{ runner.os }}-common-
# purge-created-max-age: 0

Build-Macos-Nix:
name: Build MacOS (Nix)
Expand Down

0 comments on commit 4169e61

Please sign in to comment.