Skip to content

Commit

Permalink
ci: setup-nix: pre-download tools for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
develop7 committed Dec 3, 2023
1 parent d762c80 commit 3dca94b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/actions/setup-nix/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ runs:
with:
name: postgrest
authToken: ${{ inputs.authToken }}
- name: Put all tools to store to be cached afterwards
run: nix-instantiate -A style -A memory -A withTools -A loadtest -A tests default.nix
shell: bash
- if: ${{ inputs.tools }}
run: nix-env -f default.nix -iA ${{ inputs.tools }}
shell: bash
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
tools: style memory withTools loadtest tests
cache-id: common

Lint-Style:
Expand Down

0 comments on commit 3dca94b

Please sign in to comment.