Skip to content

Commit

Permalink
Trying to fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Oct 15, 2024
1 parent 2679013 commit 5eef432
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Coverage

on:
pull_request:
Expand All @@ -14,29 +14,53 @@ on:
jobs:
build_and_test:
name: Test library with coverage
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # show all errors for each platform (vs. cancel jobs on error)
matrix:
include:
- name: Linux
os: ubuntu-22.04
cmake_args: "-DCMAKE_LINKER_TYPE=MOLD -DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15"
nparallel: 4
- name: MacOS
os: macos-14
cmake_args: "-D\"CMAKE_OSX_ARCHITECTURES=arm64;x86_64\""
nparallel: 4

steps:
- name: Install Linux Deps
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt install libasound2-dev libcurl4-openssl-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev libjack-jackd2-dev
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main"
sudo apt install clang-15 -y
- name: Install lcov (Linux)
if: runner.os == 'Linux'
run: sudo apt install lcov

- name: Install lcov (Mac)
if: runner.os == 'MacOS'
run: |
export HOMEBREW_NO_AUTO_UPDATE=1
brew install lcov
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master

- name: Get latest CMake
uses: lukka/get-cmake@latest

- uses: rui314/setup-mold@v1
if: runner.os == 'Linux'

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

- name: Cmake Configure
run: cmake -Bbuild -G"Ninja Multi-Config" -DCMAKE_LINKER_TYPE=MOLD -DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15 -DCHOWDSP_FFT_TESTING=ON -DCHOWDSP_FFT_COVERAGE=ON
run: cmake -Bbuild -G"Ninja Multi-Config" ${{ matrix.cmake_args }} -DCHOWDSP_FFT_TESTING=ON -DCHOWDSP_FFT_COVERAGE=ON

- name: Build Test
run: cmake --build build --config Debug --parallel --target test_chowdsp_fft_cpp
Expand Down

0 comments on commit 5eef432

Please sign in to comment.