Merge pull request #427 from dwbuiten/cleanups #4
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: Make Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
cc: [gcc, clang] | |
exclude: | |
- os: macos-latest | |
cc: gcc | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: install deps (ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install autoconf automake wget ffmpeg libavformat-dev libavcodec-dev libswscale-dev libavutil-dev libswresample-dev | |
- name: install deps (macOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew update | |
brew install autoconf automake wget ffmpeg | |
- name: configure | |
run: ./autogen.sh --enable-static --disable-shared | |
- name: make | |
run: make V=1 CXXFLAGS='-Werror -Wno-error=deprecated-declarations' -j2 -k | |
- name: make test | |
run: | | |
make test-sync | |
make test -j2 -k |