From d67dce0fe2f68a08b0c3d9cc787c9bf76ff7879c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 10 Feb 2021 22:35:04 +0100 Subject: [PATCH] Use ccache on macos-cmake CI jobs --- .github/workflows/ci.yml | 4 ++++ scripts/setenv | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd33422bf3..cfc2b13fe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,6 +155,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 + - name: ccache + uses: hendrikmuhs/ccache-action@v1 + with: + key: macos - name: Build OpenRCT2 run: | brew install ninja diff --git a/scripts/setenv b/scripts/setenv index bf765ccda6..99f36c11d7 100755 --- a/scripts/setenv +++ b/scripts/setenv @@ -52,6 +52,7 @@ realpath() { } scriptsdir="$(realpath "$(dirname "${BASH_SOURCE[0]}")")" export PATH="$scriptsdir:$PATH" +export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" # Output all the variables if [[ "$1" != "-q" ]]; then