Skip to content

Commit

Permalink
Revert "CI: disable ccache for MacOS builds"
Browse files Browse the repository at this point in the history
This reverts commit c432716.
  • Loading branch information
peterbarker committed Dec 27, 2024
1 parent dd1b843 commit 3b27ab3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,22 @@ jobs:
fi
Tools/environment_install/install-prereqs-mac.sh -y
source ~/.bash_profile
# Put ccache into github cache for faster build
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: bash
run: |
NOW=$(date -u +"%F-%T")
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v4
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{matrix.config}}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: ${{github.workflow}}-ccache-${{matrix.config}} # restore ccache from either previous build on this branch or on master
- name: setup ccache
run: |
. .github/workflows/ccache.env
- name: test build ${{matrix.config}}
env:
CI_BUILD_TARGET: ${{matrix.config}}
Expand All @@ -173,3 +189,5 @@ jobs:
./waf
./waf configure --board ${{matrix.config}} --debug
./waf
ccache -s
ccache -z

0 comments on commit 3b27ab3

Please sign in to comment.