mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
ci: Build for multiple GCC versions
This fixes the crash when OBS Studio was built with a different GCC version, although the exact cause of the crash is not yet known. Fixes: #125 #124
This commit is contained in:
parent
c13b9c3641
commit
92d038277d
1 changed files with 36 additions and 52 deletions
82
.github/workflows/main.yml
vendored
82
.github/workflows/main.yml
vendored
|
@ -10,12 +10,12 @@ jobs:
|
||||||
runner: [ windows-2016, windows-2019 ]
|
runner: [ windows-2016, windows-2019 ]
|
||||||
include:
|
include:
|
||||||
- runner: windows-2016
|
- runner: windows-2016
|
||||||
id: 2017
|
id: windows-vs2017
|
||||||
windows_sdk: "10.0.17763.0"
|
windows_sdk: "10.0.17763.0"
|
||||||
cmake_generator: "Visual Studio 15 2017 Win64"
|
cmake_generator: "Visual Studio 15 2017 Win64"
|
||||||
cmake_generator_platform: ""
|
cmake_generator_platform: ""
|
||||||
- runner: windows-2019
|
- runner: windows-2019
|
||||||
id: 2019
|
id: windows-vs2019
|
||||||
windows_sdk: "10.0.18362.0"
|
windows_sdk: "10.0.18362.0"
|
||||||
cmake_generator: "Visual Studio 16 2019"
|
cmake_generator: "Visual Studio 16 2019"
|
||||||
cmake_generator_platform: "x64"
|
cmake_generator_platform: "x64"
|
||||||
|
@ -34,7 +34,7 @@ jobs:
|
||||||
- name: "Configure Project"
|
- name: "Configure Project"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cmake -H. -B"build/temp" -DCMAKE_PACKAGE_NAME=StreamFX -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
|
cmake -H. -B"build/temp" -DCMAKE_PACKAGE_NAME="streamfx-${{ matrix.id }}" -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
|
||||||
- name: "Build Project"
|
- name: "Build Project"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -55,18 +55,27 @@ jobs:
|
||||||
- name: "Upload Artifacts"
|
- name: "Upload Artifacts"
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: windows-${{ matrix.id }}
|
name: ${{ matrix.id }}
|
||||||
path: build/package
|
path: build/package
|
||||||
ubuntu:
|
ubuntu:
|
||||||
name: "Linux/Ubuntu 64-bit"
|
name: "Linux/Ubuntu 64-bit"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
runner: [ ubuntu-18.04, ubuntu-16.04 ]
|
runner: [ ubuntu-16.04, ubuntu-18.04 ]
|
||||||
|
gcc: [ 8, 9 ]
|
||||||
include:
|
include:
|
||||||
- runner: ubuntu-16.04
|
- runner: ubuntu-16.04
|
||||||
id: 1604
|
gcc: 8
|
||||||
|
id: ubuntu1604-gcc8
|
||||||
|
- runner: ubuntu-16.04
|
||||||
|
gcc: 9
|
||||||
|
id: ubuntu1604-gcc9
|
||||||
- runner: ubuntu-18.04
|
- runner: ubuntu-18.04
|
||||||
id: 1804
|
gcc: 8
|
||||||
|
id: ubuntu1804-gcc8
|
||||||
|
- runner: ubuntu-18.04
|
||||||
|
gcc: 9
|
||||||
|
id: ubuntu1804-gcc9
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
env:
|
env:
|
||||||
CMAKE_GENERATOR: "Ninja"
|
CMAKE_GENERATOR: "Ninja"
|
||||||
|
@ -79,54 +88,29 @@ jobs:
|
||||||
- name: "Prerequisites: Apt-Get"
|
- name: "Prerequisites: Apt-Get"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo dpkg --add-architecture amd64
|
|
||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
sudo apt-get install -y \
|
sudo apt-get install \
|
||||||
build-essential \
|
build-essential \
|
||||||
|
gcc-${{ matrix.gcc }} \
|
||||||
|
g++-${{ matrix.gcc }} \
|
||||||
checkinstall \
|
checkinstall \
|
||||||
cmake \
|
cmake \
|
||||||
swig \
|
ninja-build \
|
||||||
pkg-config \
|
git \
|
||||||
gcc-8 g++-8 gcc-8-multilib \
|
libavcodec-dev \
|
||||||
python3-dev:amd64 \
|
libavdevice-dev \
|
||||||
libasound2-dev:amd64 \
|
libavfilter-dev \
|
||||||
libavcodec-dev:amd64 \
|
libavformat-dev \
|
||||||
libavdevice-dev:amd64 \
|
libavutil-dev \
|
||||||
libavfilter-dev:amd64 \
|
libswresample-dev \
|
||||||
libavformat-dev:amd64 \
|
libswscale-dev \
|
||||||
libavutil-dev:amd64 \
|
libgl1-mesa-dev \
|
||||||
libcurl4-openssl-dev:amd64 \
|
pkg-config
|
||||||
libfdk-aac-dev:amd64 \
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc }} 800 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc }}
|
||||||
libfontconfig-dev:amd64 \
|
|
||||||
libfreetype6-dev:amd64 \
|
|
||||||
libgl1-mesa-dev:amd64 \
|
|
||||||
libjack-jackd2-dev:amd64 \
|
|
||||||
libjansson-dev:amd64 \
|
|
||||||
libluajit-5.1-dev:amd64 \
|
|
||||||
libpulse-dev:amd64 \
|
|
||||||
libqt5x11extras5-dev:amd64 \
|
|
||||||
libspeexdsp-dev:amd64 \
|
|
||||||
libswresample-dev:amd64 \
|
|
||||||
libswscale-dev:amd64 \
|
|
||||||
libudev-dev:amd64 \
|
|
||||||
libv4l-dev:amd64 \
|
|
||||||
libvlc-dev:amd64 \
|
|
||||||
libx11-dev:amd64 \
|
|
||||||
libx264-dev:amd64 \
|
|
||||||
libxcb-randr0-dev:amd64 \
|
|
||||||
libxcb-shm0-dev:amd64 \
|
|
||||||
libxcb-xinerama0-dev:amd64 \
|
|
||||||
libxcomposite-dev:amd64 \
|
|
||||||
libxinerama-dev:amd64 \
|
|
||||||
qtbase5-dev:amd64 \
|
|
||||||
libqt5svg5-dev:amd64 \
|
|
||||||
ninja-build
|
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
|
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
|
||||||
- name: "Configure Project"
|
- name: "Configure Project"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cmake -H. -B"build/temp" -DCMAKE_PACKAGE_NAME=StreamFX -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
|
cmake -H. -B"build/temp" -DCMAKE_PACKAGE_NAME="streamfx-${{ matrix.id }}" -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
|
||||||
- name: "Build Project"
|
- name: "Build Project"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -140,5 +124,5 @@ jobs:
|
||||||
- name: "Upload Artifacts"
|
- name: "Upload Artifacts"
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: ubuntu-${{ matrix.id }}
|
name: ${{ matrix.id }}
|
||||||
path: build/package
|
path: build/package
|
||||||
|
|
Loading…
Reference in a new issue