Skip to content

Commit

Permalink
Switch to ccache
Browse files Browse the repository at this point in the history
sccache requires root access which fails when we use a docker, so move
to the simpler ccache which uses apt install.
  • Loading branch information
coldav committed Jan 8, 2025
1 parent ebfce3b commit 757fa19
Show file tree
Hide file tree
Showing 5 changed files with 399 additions and 395 deletions.
2 changes: 1 addition & 1 deletion .github/actions/do_build_ock_artefact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
echo arch = ${{steps.calc_vars.outputs.arch}}
echo toolchain = ${{steps.calc_vars.outputs.toolchain}}
# installs tools, ninja, installs llvm and sets up sccache
# installs tools, ninja, installs llvm and sets up ccache
- name: setup
uses: ./.github/actions/setup_build
with:
Expand Down
8 changes: 5 additions & 3 deletions .github/actions/setup_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,12 @@ runs:
fail-on-cache-miss: true

# note the PR testing usage should set 'save' to false, to avoid PR testing creating new caches on a branch
- name: Setup sccache
- name: Setup ccache
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
with:
max-size: 200M
key: sccache-build
variant: sccache
key: ccache-build
variant: ccache
save: ${{ inputs.save }}
append_timestamp: false

2 changes: 1 addition & 1 deletion .github/workflows/create_publish_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

# installs tools, ninja, installs llvm and sets up sccache
# installs tools, ninja, installs llvm and sets up ccache
- name: Setup ubuntu
uses: ./.github/actions/setup_build
with:
Expand Down
Loading

0 comments on commit 757fa19

Please sign in to comment.