Skip to content

Commit

Permalink
Disable ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Feb 22, 2024
1 parent 21639d5 commit a0ec375
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/actions/setup-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Setup Dependencies

inputs:
cache:
description: "Indicates whether to install and configure caching tools"
use_ccache:
description: "Indicates whether to install and configure ccache"
required: false
type: boolean
default: true

runs:
Expand Down Expand Up @@ -84,15 +85,15 @@ runs:
restore-keys: |
ci-${{ runner.os }}-${{matrix.name || matrix.language }}-
ci-${{ runner.os }}-
if: inputs.cache && (runner.os == 'macOS' || runner.os == 'Linux')
if: inputs.use_ccache && (runner.os == 'macOS' || runner.os == 'Linux')

- name: Configure ccache path
run: |
echo "/usr/lib/ccache" >> $GITHUB_PATH
echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
echo "/opt/homebrew/opt/ccache/libexec" >> $GITHUB_PATH
shell: bash
if: inputs.cache && (runner.os == 'macOS' || runner.os == 'Linux')
if: inputs.use_ccache && (runner.os == 'macOS' || runner.os == 'Linux')

# - name: Setup Windows Cache
# uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Dependencies
uses: ./.github/actions/setup-dependencies
with:
cache: false
cache: use_ccache

- name: Install awscli
run: brew install awscli || true
Expand Down

0 comments on commit a0ec375

Please sign in to comment.