Skip to content

Commit

Permalink
CI: Switch to macOS-12 / GCC 11 after removal of macOS-11
Browse files Browse the repository at this point in the history
  • Loading branch information
krivenko committed Jul 16, 2024
1 parent da20d5f commit d3f9a3e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
build-test-deploy:
strategy:
matrix:
os: [ubuntu-20.04, macos-11]
cxx_compiler:
- { name: "gcc", cxx: "g++-10" }
- { name: "clang", cxx: "clang++" }
- {os: "ubuntu-20.04", cc: "gcc", cxx: "g++-10" }
- {os: "ubuntu-20.04", cc: "clang", cxx: "clang++" }
- {os: "macos-12", cc: "gcc", cxx: "g++-11" }
- {os: "macos-12", cc: "clang", cxx: "clang++" }
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -33,7 +33,7 @@ jobs:
fi
- name: Set up Python 3.8
if: startsWith(matrix.cxx_compiler.name, 'clang')
if: startsWith(matrix.cxx, 'clang')
uses: actions/setup-python@v4
with:
python-version: 3.8
Expand All @@ -43,7 +43,7 @@ jobs:
run: sudo apt-get install cppcheck

- name: Install Sphinx and Read the Docs Sphinx Theme
if: startsWith(matrix.cxx_compiler.name, 'clang')
if: startsWith(matrix.cxx, 'clang')
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx-rtd-theme myst-parser
Expand All @@ -58,12 +58,12 @@ jobs:
STATIC_ANALYSIS=OFF
fi
if [[ "${{ matrix.cxx_compiler.name }}" == clang* ]]; then
if [[ "${{ matrix.cxx }}" == clang* ]]; then
DOCS=ON
else
DOCS=OFF
fi
CXX="${{ matrix.cxx_compiler.cxx }}" cmake .. \
CXX="${{ matrix.cxx }}" cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/installed \
-DCMAKE_CXX_FLAGS="-march=native" \
Expand All @@ -86,7 +86,7 @@ jobs:
if: |
github.ref == 'refs/heads/master' &&
startsWith(matrix.os, 'ubuntu') &&
startsWith(matrix.cxx_compiler.name, 'clang')
startsWith(matrix.cxx, 'clang')
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand Down

0 comments on commit d3f9a3e

Please sign in to comment.