Skip to content

Commit

Permalink
Macos CI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Oct 28, 2024
1 parent 4dc7242 commit 0402c86
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ jobs:
build_type: Release
runs_on: macOS-15

runs-on: ${{ matrix.runs_on }}
steps:

- name: 'Setup'
Expand Down Expand Up @@ -423,19 +424,18 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.xcode }}-${{ matrix.build_type}}-${{ matrix.cxxstd }}

- name: 'Build'
env:
BUILD_TYPE: ${{ matrix.build_type }}
CXX_STANDARD: ${{ matrix.cxxstd }}
run: |
set -e
mkdir build
cd build
cmake --version
cmake \
-DCMAKE_CXX_STANDARD=${CXX_STANDARD} \
-DUSE_CCACHE=ON \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
cmake --build . --config ${BUILD_TYPE} -j 3
-D CMAKE_CXX_STANDARD=${{ matrix.cxxstd }} \
-D USE_CCACHE=ON \
-D CMAKE_BUILD_TYPE=${{ matrix.build_type }} \
..
cmake --build . --config ${{ matrix.build_type }} -j 4
ccache --show-stats
- name: Save build cache
uses: actions/cache/save@v4
Expand All @@ -446,7 +446,7 @@ jobs:
- name: 'Test'
run: |
cd build
ctest -V --output-on-failure -C ${BUILD_TYPE}
ctest -V --output-on-failure -C ${{ matrix.build_type }}
code-quality:
Expand Down

0 comments on commit 0402c86

Please sign in to comment.