Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ccache in Mac/Linux CI jobs #1172

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
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
20 changes: 19 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
sudo apt-get update && sudo apt-get install \
ninja-build \
libjack-jackd2-dev
- name: ccache
uses: hendrikmuhs/[email protected]
- name: Install abseil
if: ${{ github.ref_type == 'branch' }}
run: |
Expand All @@ -68,6 +70,8 @@ jobs:
-B build
-S .
-D CMAKE_BUILD_TYPE=${{ env.build_type }}
-D CMAKE_C_COMPILER_LAUNCHER=ccache
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-D SFIZZ_JACK=ON
-D SFIZZ_RENDER=ON
-D SFIZZ_SHARED=ON
Expand Down Expand Up @@ -142,12 +146,16 @@ jobs:
- name: Install dependencies
if: ${{ github.ref_type == 'branch' }}
run: brew install abseil
- name: ccache
uses: hendrikmuhs/[email protected]
- name: Configure CMake
run: |
options=(
-B build
-S .
-D CMAKE_BUILD_TYPE=${{ env.build_type }}
-D CMAKE_C_COMPILER_LAUNCHER=ccache
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-D SFIZZ_SHARED=ON
-D SFIZZ_TESTS=ON
)
Expand Down Expand Up @@ -228,14 +236,24 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
choco install ninja
ninja --version
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.platform }}
- name: Configure CMake
run: |
cmake `
-G "Visual Studio 16 2019" `
-G Ninja `
-A "${{ matrix.release_arch }}" `
-B build `
-S . `
-D CMAKE_BUILD_TYPE=${{ env.build_type }} `
-D CMAKE_C_COMPILER_LAUNCHER=sccache `
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache `
-D SFIZZ_TESTS=ON
echo "-- runner.workspace: ${{ runner.workspace }}"
echo "-- github.workspace: ${{ github.workspace }}"
Expand Down