Skip to content

Commit

Permalink
Try sccache without Ninja on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sudara committed Jul 31, 2024
1 parent 3413c58 commit efabd8d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
fail-fast: false
matrix:
app: [ member_enabled, member_disabled, unique_ptr_enabled, unique_ptr_disabled ]
os: [ windows-2022]
os: [ macos-14, windows-2022, ubuntu-latest ]
juce: [ JUCE7, JUCE8 ]

steps:
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Use dev command prompt (Windows)
uses: ilammy/msvc-dev-cmd@v1
with:
sdk: 10.0.22621.0
sdk: 10.0.22621.0 # fixed to break random CI breakage

- name: Install Ninja (Windows)
if: runner.os == 'Windows'
Expand All @@ -71,14 +71,22 @@ jobs:
- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Configure
- name: Configure (Windows without Ninja)
run: |
if [ "${{ matrix.juce }}" == "JUCE7" ]; then
cmake -B Builds -G Ninja -DTARGET_NAME:STRING=${{ matrix.app }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache . -DJUCE7=ON
cmake -B Builds -DTARGET_NAME:STRING=${{ matrix.app }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache . -DJUCE7=ON
else
cmake -B Builds -G Ninja -DTARGET_NAME:STRING=${{ matrix.app }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache .
cmake -B Builds-DTARGET_NAME:STRING=${{ matrix.app }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache .
fi
- name: Configure (Non-Windows with Ninja)
run: |
if [ "${{ matrix.juce }}" == "JUCE7" ]; then
cmake -B Builds -G Ninja -DTARGET_NAME:STRING=${{ matrix.app }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache . -DJUCE7=ON
else
cmake -B Builds -G Ninja -DTARGET_NAME:STRING=${{ matrix.app }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache .
fi
- name: Build
run: cmake --build Builds --parallel 4

Expand Down

0 comments on commit efabd8d

Please sign in to comment.