Skip to content

Commit

Permalink
Clang fixes for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
emoon committed Feb 2, 2024
1 parent 2eac997 commit 3d5af82
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,31 @@ jobs:

linux_clang_ubuntu_20_04:
runs-on: ubuntu-20.04
name: (Ubuntu 20.04) Linux Clang ${{ matrix.gcc-version }}.x
name: (Ubuntu 20.04) Linux Clang ${{ matrix.clang-version }}.x
strategy:
matrix:
clang_version: [8, 9, 10, 11]
clang-version: [8, 9, 10, 11]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Clang ${{ matrix.clang_version }}
- name: Install Clang ${{ matrix.clang-version }}
run: |
sudo apt-get update
sudo apt-get install -y clang-${{ matrix.clang_version }}
sudo apt-get install -y clang++-${{ matrix.clang_version }}
sudo apt-get install -y clang-${{ matrix.clang-version }}
sudo apt-get install -y clang++-${{ matrix.clang-version }}
- name: Select Clang ${{ matrix.clang_version }}
- name: Select Clang ${{ matrix.clang-version }}
run: |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.clang_version }} 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ matrix.clang_version }} 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.clang-version }} 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ matrix.clang-version }} 100
clang --version # Display the version of clang for debugging
clang++ --version # Display the version of clang for debugging
- name: Install dependencies
run: sudo apt-get install -y libsdl2-dev

- name: Build quaesar
env:
CC: clang-${{ matrix.clang_version }}
Expand Down

0 comments on commit 3d5af82

Please sign in to comment.