-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try sccache without Ninja on Windows
- Loading branch information
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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' | ||
|
@@ -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 | ||
|
||
|