Add generated configuration scripts #276
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-and-test | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: DoozyX/[email protected] | |
with: | |
source: '.' | |
exclude: './third_party' | |
extensions: 'h,c' | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install build-essential libfftw3-dev libasound2-dev libncursesw5-dev libpulse-dev libiniparser-dev portaudio19-dev libsndio-dev libsdl2-2.0-0 libsdl2-dev squeezelite pulseaudio libpipewire-0.3-dev | |
- name: Run ./configure | |
run: ./configure | |
- name: Run make | |
run: make CFLAGS='-Werror' | |
- name: Prepare tests | |
run: | | |
pulseaudio -D | |
squeezelite -o pulse -v -m 51:fb:32:f8:e6:9f -z | |
- name: run non zero test | |
run: ./cava -p example_files/test_configs/non_zero_test > /dev/null | |
- name: run pulseaudio test | |
run: ./cava -p example_files/test_configs/pulse_zero_test > /dev/null | |
- name: run fifo test | |
run: ./cava -p example_files/test_configs/fifo_zero_test > /dev/null | |
- name: run shmem test | |
run: ./cava -p example_files/test_configs/shmem_zero_test > /dev/null | |
- name: build cavacore test application | |
run: gcc -c -g cavacore_test.c | |
- name: link cavacore test application | |
run: gcc -o cavacore_test cavacore_test.o cava-cavacore.o -lm -lfftw3 | |
- name: run cavacore test application | |
run: ./cavacore_test | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: | | |
brew install fftw make portaudio iniparser sdl2 | |
- name: Generate configuresdl2 | |
- name: Run ./configure | |
run: LDFLAGS="-L/opt/homebrew/lib" CPPFLAGS="-I/opt/homebrew/include" ./configure | |
- name: Run make | |
run: make CFLAGS='-Werror' | |
- name: run non zero test | |
run: ./cava -p example_files/test_configs/non_zero_test > /dev/null |