Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/actions/setup-and-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ inputs:
description: 'Comma-separated list of components to skip (e.g., "redis,go"). If not specified, all components are installed.'
required: false
default: ""
cache-suffix:
description: 'Optional suffix for cache keys to enable separate caches per workflow (e.g., "system-programs", "sdk-tests", "rust")'
cache-key:
description: 'Cache key to differentiate caches for different workflow types (e.g., "lint", "js", "rust")'
required: false
default: ""
default: "shared"

runs:
using: "composite"
Expand Down Expand Up @@ -49,11 +49,11 @@ runs:
with:
toolchain: ${{ steps.versions.outputs.rust }}
components: rustfmt, clippy
cache-workspaces: |
. -> target
cli -> cli/target
cache-key: ${{ inputs.cache-key }}
cache-workspaces: .

- name: Setup Go
if: "!contains(inputs.skip-components, 'go')"
uses: actions/setup-go@v5
with:
go-version: ${{ steps.versions.outputs.go }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cli-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis,disk-cleanup"
cache-suffix: "js"
skip-components: "redis,disk-cleanup,go"
cache-key: "js"

- name: Build CLI
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cli-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis,disk-cleanup"
cache-suffix: "js"
skip-components: "redis,disk-cleanup,go"
cache-key: "js"

- name: Build stateless.js with V2
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/forester-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis"
cache-suffix: "rust"
skip-components: "redis,go"
cache-key: "rust"

- name: Check available disk space
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/js-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis,disk-cleanup"
cache-suffix: "js"
skip-components: "redis,disk-cleanup,go"
cache-key: "js"

- name: Build stateless.js with V2
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis,disk-cleanup"
cache-suffix: "js"
skip-components: "redis,disk-cleanup,go"
cache-key: "js"

- name: Build stateless.js with V1
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "proving-keys,redis,disk-cleanup"
skip-components: "proving-keys,redis,disk-cleanup,go"
cache-key: "lint"

- name: Run linters
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ jobs:
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis,disk-cleanup"
cache-suffix: "rust"
skip-components: "redis,disk-cleanup,go"
cache-key: "rust"

- name: Build CLI
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ jobs:
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis,disk-cleanup"
cache-suffix: "sdk-tests"
skip-components: "redis,disk-cleanup,go"
cache-key: "rust"

- name: Build CLI
run: |
Expand Down
Loading