ci: Remove nix actions cache and prepopulate job

The nix actions cache currently leads to repeated "no space left on
devices" errors for jobs in CI.

The prepopulate job is useless without the nix actions cache, so it
will go away at the same time.
This commit is contained in:
Wolfgang Walther
2024-02-10 12:35:56 +01:00
parent 5424be76d9
commit 8a3b0c60ad
3 changed files with 0 additions and 31 deletions
-9
View File
@@ -7,9 +7,6 @@ inputs:
description: Token to pass to cachix description: Token to pass to cachix
tools: tools:
description: Tools to install with nix-env -iA <tools> description: Tools to install with nix-env -iA <tools>
cache-id:
description: Cache id to use for cache-nix-action
default: "default"
runs: runs:
using: composite using: composite
@@ -17,12 +14,6 @@ runs:
- uses: nixbuild/nix-quick-install-action@v26 - uses: nixbuild/nix-quick-install-action@v26
with: with:
nix_version: '2.13.6' nix_version: '2.13.6'
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v4.0.3
with:
key: cache-nix-${{ runner.os }}-${{ inputs.cache }}-${{ hashFiles('**/*.nix', 'nix/**/*.patch') }}
restore-keys: |
cache-nix-${{ runner.os }}-${{ inputs.cache }}-
- uses: cachix/cachix-action@v14 - uses: cachix/cachix-action@v14
with: with:
name: postgrest name: postgrest
-20
View File
@@ -18,22 +18,9 @@ concurrency:
cancel-in-progress: "${{ !(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/rel-')) }}" cancel-in-progress: "${{ !(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/rel-')) }}"
jobs: jobs:
Prepopulate-Nix-Cache-Linux:
name: Prepopulate Nix cache for Linux runners
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
cache-id: common
tools: style withTools memory tests release postgrestPackage
Lint-Style: Lint-Style:
name: Lint & check code style name: Lint & check code style
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Prepopulate-Nix-Cache-Linux]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Nix Environment - name: Setup Nix Environment
@@ -41,7 +28,6 @@ jobs:
with: with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: style tools: style
cache-id: common
- name: Run linter (check locally with `nix-shell --run postgrest-lint`) - name: Run linter (check locally with `nix-shell --run postgrest-lint`)
run: postgrest-lint run: postgrest-lint
- name: Run style check (auto-format with `nix-shell --run postgrest-style`) - name: Run style check (auto-format with `nix-shell --run postgrest-style`)
@@ -51,7 +37,6 @@ jobs:
Test-Nix: Test-Nix:
name: Test (Nix) name: Test (Nix)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Prepopulate-Nix-Cache-Linux]
defaults: defaults:
run: run:
# Hack for enabling color output, see: # Hack for enabling color output, see:
@@ -64,7 +49,6 @@ jobs:
with: with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: tests tools: tests
cache-id: common
- name: Run coverage (IO tests and Spec tests against PostgreSQL 15) - name: Run coverage (IO tests and Spec tests against PostgreSQL 15)
run: postgrest-coverage run: postgrest-coverage
@@ -89,7 +73,6 @@ jobs:
pgVersion: [9.6, 10, 11, 12, 13, 14, 15, 16] pgVersion: [9.6, 10, 11, 12, 13, 14, 15, 16]
name: Test PG ${{ matrix.pgVersion }} (Nix) name: Test PG ${{ matrix.pgVersion }} (Nix)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Prepopulate-Nix-Cache-Linux]
defaults: defaults:
run: run:
# Hack for enabling color output, see: # Hack for enabling color output, see:
@@ -102,7 +85,6 @@ jobs:
with: with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: tests withTools tools: tests withTools
cache-id: common
- name: Run spec tests - name: Run spec tests
if: always() if: always()
@@ -116,7 +98,6 @@ jobs:
Test-Memory-Nix: Test-Memory-Nix:
name: Test memory (Nix) name: Test memory (Nix)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [Prepopulate-Nix-Cache-Linux]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Nix Environment - name: Setup Nix Environment
@@ -124,7 +105,6 @@ jobs:
with: with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: memory tools: memory
cache-id: common
- name: Run memory tests - name: Run memory tests
run: postgrest-test-memory run: postgrest-test-memory
-2
View File
@@ -26,7 +26,6 @@ jobs:
uses: ./.github/actions/setup-nix uses: ./.github/actions/setup-nix
with: with:
tools: loadtest tools: loadtest
cache-id: test-loadtest
- uses: actions-ecosystem/action-get-latest-tag@v1 - uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag id: get-latest-tag
with: with:
@@ -58,7 +57,6 @@ jobs:
uses: ./.github/actions/setup-nix uses: ./.github/actions/setup-nix
with: with:
tools: loadtest tools: loadtest
cache-id: test-loadtest
- name: Run loadtest - name: Run loadtest
run: | run: |
postgrest-loadtest-against ${{ steps.get-latest-tag.outputs.tag }} postgrest-loadtest-against ${{ steps.get-latest-tag.outputs.tag }}