pineapple/externals/cubeb/.github/workflows/build.yml

76 lines
1.7 KiB
YAML
Raw Normal View History

2021-12-08 07:33:31 +01:00
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
env:
BUILD_TYPE: ${{ matrix.type }}
strategy:
matrix:
2022-07-17 09:10:25 +02:00
os: [ubuntu-20.04, windows-2019, macos-10.15]
2021-12-08 07:33:31 +01:00
type: [Release, Debug]
steps:
2022-07-17 09:10:25 +02:00
- uses: actions/checkout@v2
2021-12-08 07:33:31 +01:00
with:
submodules: true
- name: Install Dependencies (Linux)
run: sudo apt-get update && sudo apt-get install libpulse-dev pulseaudio
if: matrix.os == 'ubuntu-20.04'
- name: Start Sound Server (Linux)
run: pulseaudio -D --start
if: matrix.os == 'ubuntu-20.04'
- name: Configure CMake
shell: bash
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
shell: bash
run: cmake --build build
- name: Test
shell: bash
run: (cd build && ctest -V)
if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-10.15' }}
build-android:
runs-on: ubuntu-20.04
env:
BUILD_TYPE: ${{ matrix.type }}
strategy:
matrix:
type: [Release, Debug]
steps:
2022-07-17 09:10:25 +02:00
- uses: actions/checkout@v2
2021-12-08 07:33:31 +01:00
with:
submodules: true
- name: Configure CMake
shell: bash
2022-07-17 09:10:25 +02:00
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=android-26
2021-12-08 07:33:31 +01:00
- name: Build
shell: bash
run: cmake --build build
check_format:
runs-on: ubuntu-20.04
steps:
2022-07-17 09:10:25 +02:00
- uses: actions/checkout@v2
2021-12-08 07:33:31 +01:00
with:
submodules: true
- name: Configure CMake
shell: bash
run: cmake -S . -B build
- name: Check format
shell: bash
run: cmake --build build --target clang-format-check