Skip to content

Commit

Permalink
CI: use gcc-12 for test-other-configurations
Browse files Browse the repository at this point in the history
The default `gcc-11` produces a failing test (`test_physics`) for the
single precision build which newer versions of `gcc` don't.
  • Loading branch information
Puerling committed Oct 2, 2024
1 parent 29d3b94 commit 0158534
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,16 @@ jobs:
- name: 📚 Install python packages
run: pip install --user numpy

- name: Force upgrade to gcc-12 on Ubuntu 22.04
if: matrix.os == 'ubuntu-22.04'
shell: bash
run: |
sudo apt-get update
sudo apt-get --purge remove -y "g++*"
sudo apt-get install -y g++-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 10
- name: 📚 Install required system packages
if: matrix.os == 'ubuntu-22.04'
run: |
Expand Down

0 comments on commit 0158534

Please sign in to comment.