Skip to content

Commit

Permalink
ci: ci.yml now has a matrix for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 authored Nov 19, 2023
1 parent 9e11fc4 commit e221bd3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,15 @@ jobs:
macos:
permissions:
contents: write
name: macOS x64
runs-on: macos-latest
name: macOS ${{matrix.cfg.arch}} (${{matrix.cfg.cpp-version}})
runs-on: ${{matrix.cfg.os}}
strategy:
fail-fast: false # Don't fail everything if one fails. We want to test each OS/Compiler individually
matrix:
# arm64 is a self-hosted runner on a Mac M2 Mini, ran inside a virtual machine by Archie Jaskowicz.
cfg:
- { arch: 'x64', concurrency: 3, os: ubuntu-20.04, cpp-version: clang++-10, cmake-flags: '', cpack: 'no' }
- { arch: 'arm64', concurrency: 2, os: [self-hosted, ARM64, macOS], cpp-version: clang++-15, cmake-flags: '', cpack: 'no' }
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
Expand All @@ -145,15 +152,15 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install homebrew packages
run: brew install cmake make libsodium opus openssl
run: brew install cmake make libsodium opus openssl pkg-config

- name: Generate CMake
run: mkdir build && cd build && cmake -DDPP_NO_VCPKG=ON -DCMAKE_BUILD_TYPE=Release -DDPP_CORO=ON -DAVX_TYPE=AVX0 ..
env:
DONT_RUN_VCPKG: true

- name: Build Project
run: cd build && make -j3
run: cd build && make -j${{ matrix.cfg.concurrency }}
env:
DONT_RUN_VCPKG: true

Expand Down

0 comments on commit e221bd3

Please sign in to comment.