Skip to content

Commit

Permalink
macOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
emoon committed Feb 3, 2024
1 parent fa91fd2 commit d924559
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,52 @@ jobs:
CXX: clang++-${{ matrix.clang-version }}
run: make -j$(nproc)

linux_clang_ubuntu_22_04:
runs-on: ubuntu-22.04
name: (Ubuntu 22.04) Clang ${{ matrix.clang-version }}.x
strategy:
matrix:
clang-version: [12, 13, 14, 15]

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

- 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 }}
- 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
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 }}
CXX: clang++-${{ matrix.clang-version }}
run: make -j$(nproc)

macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-12, macos-13, macos-14]

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

- name: Install dependencies
run: brew install sdl2

- name: Build quaesar
run: make -j$(nproc)

0 comments on commit d924559

Please sign in to comment.