Skip to content

add automake and verison file #278

add automake and verison file

add automake and verison file #278

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 automake 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 automake portaudio iniparser sdl2
- 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