Merge pull request #756 from eclipseo/fix_for_ffmpeg7 #67
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: ci | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { | |
name: "Ubuntu GCC", | |
os: ubuntu-latest, | |
cc: "gcc", | |
cxx: "g++", | |
cxxpackage: "g++" | |
} | |
- { | |
name: "Ubuntu GCC 7", | |
os: ubuntu-latest, | |
cc: "gcc-7", | |
cxx: "g++-7", | |
cxxpackage: "g++-7" | |
} | |
- { | |
name: "Ubuntu Clang", | |
os: ubuntu-latest, | |
cc: "clang", | |
cxx: "clang++", | |
cxxpackage: "clang++" | |
} | |
- { | |
name: "macOS Clang", | |
os: macos-latest, | |
cc: "clang", | |
cxx: "clang++", | |
cxxpackage: "clang++" | |
} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install Linux Dependencies | |
if: runner.os == 'Linux' | |
run: sudo apt-get update && sudo apt-get install $CC $CXXPACKAGE libopenal-dev zlib1g-dev libfreetype6-dev libjpeg-dev libsfml-dev libavutil-dev libavcodec-dev libavformat-dev libswscale-dev libswresample-dev libarchive-dev libfontconfig1-dev libxinerama-dev libxrandr-dev freeglut3-dev libcurl4-openssl-dev pkg-config | |
- name: Install MacOS Dependencies | |
if: runner.os == 'MacOS' | |
run: brew update && brew install ffmpeg sfml libarchive curl | |
- name: Build | |
env: | |
CC: ${{ matrix.config.cc }} | |
CXX: ${{ matrix.config.cxx }} | |
shell: bash | |
run: make |