2020-04-02 18:22:44 +00:00
|
|
|
name: Build
|
2019-09-03 19:18:14 +00:00
|
|
|
|
2020-07-15 19:43:49 +00:00
|
|
|
on:
|
2020-04-23 23:55:40 +00:00
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- 'l10n_master'
|
|
|
|
pull_request:
|
2020-04-24 04:18:40 +00:00
|
|
|
branches:
|
|
|
|
- '*'
|
2019-09-03 19:18:14 +00:00
|
|
|
|
|
|
|
jobs:
|
2019-12-18 05:46:03 +00:00
|
|
|
windows:
|
2020-04-02 18:22:44 +00:00
|
|
|
name: "Windows 64-bit"
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-04-22 22:36:40 +00:00
|
|
|
runner: [ windows-2019 ]
|
2020-04-02 18:22:44 +00:00
|
|
|
include:
|
|
|
|
- runner: windows-2019
|
2020-04-02 23:44:23 +00:00
|
|
|
id: windows2019
|
2020-04-02 18:22:44 +00:00
|
|
|
windows_sdk: "10.0.18362.0"
|
|
|
|
cmake_generator: "Visual Studio 16 2019"
|
|
|
|
cmake_generator_platform: "x64"
|
|
|
|
runs-on: ${{ matrix.runner }}
|
|
|
|
env:
|
|
|
|
CMAKE_GENERATOR: ${{ matrix.cmake_generator }}
|
|
|
|
CMAKE_GENERATOR_PLATFORM: ${{ matrix.cmake_generator_platform }}
|
|
|
|
CMAKE_GENERATOR_TOOLSET: "host=x64"
|
|
|
|
CMAKE_SYSTEM_VERSION: ${{ matrix.windows_sdk }}
|
2019-09-03 19:18:14 +00:00
|
|
|
steps:
|
2019-12-18 05:46:03 +00:00
|
|
|
- name: "Clone Repository"
|
|
|
|
uses: actions/checkout@v1
|
2020-03-25 19:23:47 +00:00
|
|
|
- name: "Clone Submodules"
|
|
|
|
shell: bash
|
|
|
|
run: git submodule update --init --recursive
|
2020-07-15 19:43:49 +00:00
|
|
|
- name: "Cache: Prerequisites"
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build/temp/qt-download/qt-download-prefix/src/qt.7z
|
|
|
|
build/temp/obsdeps-download/obsdeps-download-prefix/src/obsdeps.7z
|
|
|
|
build/temp/libobs-download/libobs-download-prefix/src/libobs.7z
|
|
|
|
key: ${{ matrix.id }}
|
2020-01-14 08:31:41 +00:00
|
|
|
- name: "Configure Project"
|
2020-01-14 08:41:24 +00:00
|
|
|
shell: bash
|
2020-01-14 08:31:41 +00:00
|
|
|
run: |
|
2020-04-02 22:17:36 +00:00
|
|
|
cmake -H. -B"build/temp" -DCMAKE_PACKAGE_NAME="streamfx-${{ matrix.id }}" -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
|
2020-01-14 08:31:41 +00:00
|
|
|
- name: "Build Project"
|
2020-01-14 08:41:24 +00:00
|
|
|
shell: bash
|
2020-01-14 08:31:41 +00:00
|
|
|
run: |
|
2020-02-13 09:11:33 +00:00
|
|
|
cmake --build "build/temp" --config RelWithDebInfo --target INSTALL
|
2020-01-14 08:31:41 +00:00
|
|
|
- name: "Package Project"
|
2020-01-14 08:41:24 +00:00
|
|
|
shell: bash
|
2019-12-18 05:46:03 +00:00
|
|
|
run: |
|
2020-02-13 09:15:23 +00:00
|
|
|
mkdir build/package
|
2020-01-14 08:41:24 +00:00
|
|
|
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_7Z
|
|
|
|
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_ZIP
|
2019-12-18 05:46:03 +00:00
|
|
|
- name: "Package Installer (Prereqs)"
|
|
|
|
run: |
|
|
|
|
curl "-kL" "https://cdn.xaymar.com/ci/innosetup-6.0.3.exe" "-f" "--retry" "5" "-o" "inno.exe"
|
|
|
|
.\inno.exe /VERYSILENT /SP- /SUPPRESSMSGBOXES /NORESTART
|
|
|
|
- name: "Package Installer (Compile)"
|
|
|
|
run: |
|
2020-02-13 09:25:33 +00:00
|
|
|
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /Qp ".\build\temp\installer.iss"
|
2019-12-18 05:46:03 +00:00
|
|
|
- name: "Upload Artifacts"
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-04-02 22:17:36 +00:00
|
|
|
name: ${{ matrix.id }}
|
2019-12-18 05:46:03 +00:00
|
|
|
path: build/package
|
2020-04-02 18:22:44 +00:00
|
|
|
ubuntu:
|
2020-04-24 01:09:59 +00:00
|
|
|
name: "Ubuntu 64-bit"
|
2020-04-02 18:22:44 +00:00
|
|
|
strategy:
|
2020-04-24 01:09:59 +00:00
|
|
|
matrix:
|
|
|
|
ubuntu: [ bionic ]
|
2020-04-23 23:50:16 +00:00
|
|
|
compiler: [ gcc, clang ]
|
2020-04-24 01:09:59 +00:00
|
|
|
compiler-version: [ 8, 9, 10 ]
|
|
|
|
exclude:
|
|
|
|
- ubuntu: bionic
|
|
|
|
compiler: gcc
|
|
|
|
compiler-version: 10
|
|
|
|
- ubuntu: bionic
|
|
|
|
compiler: clang
|
|
|
|
compiler-version: 8
|
2020-04-02 18:22:44 +00:00
|
|
|
include:
|
2020-04-24 01:09:59 +00:00
|
|
|
- ubuntu: bionic
|
2020-04-23 23:50:16 +00:00
|
|
|
compiler: gcc
|
|
|
|
compiler-version: 8
|
2020-04-24 01:09:59 +00:00
|
|
|
compiler-cxx: g++
|
|
|
|
runner: ubuntu-18.04
|
2020-04-23 23:50:16 +00:00
|
|
|
packages: gcc-8 g++8
|
|
|
|
extra_command: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
|
|
|
id: ubuntu1804-gcc8
|
2020-04-24 01:09:59 +00:00
|
|
|
- ubuntu: bionic
|
2020-04-23 23:50:16 +00:00
|
|
|
compiler: gcc
|
|
|
|
compiler-version: 9
|
2020-04-24 01:09:59 +00:00
|
|
|
compiler-cxx: g++
|
|
|
|
runner: ubuntu-latest
|
|
|
|
packages: gcc-9 g++9
|
2020-04-23 23:50:16 +00:00
|
|
|
extra_command: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 800 --slave /usr/bin/g++ g++ /usr/bin/g++-9
|
2020-04-24 05:54:41 +00:00
|
|
|
id: ubuntu1910-gcc9
|
2020-04-24 01:09:59 +00:00
|
|
|
- ubuntu: bionic
|
2020-04-23 23:50:16 +00:00
|
|
|
compiler: clang
|
|
|
|
compiler-version: 9
|
2020-04-24 01:09:59 +00:00
|
|
|
compiler-cxx: clang++
|
|
|
|
runner: ubuntu-18.04
|
2020-04-23 23:50:16 +00:00
|
|
|
packages: clang-9
|
|
|
|
extra_command: ""
|
2020-04-24 01:09:59 +00:00
|
|
|
id: ubuntu1804-clang9
|
|
|
|
- ubuntu: bionic
|
2020-04-23 23:50:16 +00:00
|
|
|
compiler: clang
|
2020-04-24 01:09:59 +00:00
|
|
|
compiler-version: 10
|
|
|
|
compiler-cxx: clang++
|
2020-04-24 06:01:12 +00:00
|
|
|
runner: ubuntu-latest
|
2020-04-24 01:09:59 +00:00
|
|
|
packages: clang-10
|
|
|
|
extra_command: ""
|
2020-04-24 05:54:41 +00:00
|
|
|
id: ubuntu1910-clang10
|
2020-04-02 18:22:44 +00:00
|
|
|
runs-on: ${{ matrix.runner }}
|
|
|
|
env:
|
|
|
|
CMAKE_GENERATOR: "Ninja"
|
2020-04-23 23:50:16 +00:00
|
|
|
CC: ${{ matrix.compiler }}
|
|
|
|
CXX: ${{ matrix.compiler-cxx }}
|
2020-02-13 09:11:33 +00:00
|
|
|
steps:
|
|
|
|
- name: "Clone Repository"
|
|
|
|
uses: actions/checkout@v1
|
2020-04-02 18:22:44 +00:00
|
|
|
- name: "Prerequisites: Submodules"
|
2020-03-25 19:23:47 +00:00
|
|
|
shell: bash
|
|
|
|
run: git submodule update --init --recursive
|
2020-04-02 18:22:44 +00:00
|
|
|
- name: "Prerequisites: Apt-Get"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-04-24 01:09:59 +00:00
|
|
|
if [ "${{ matrix.compiler }}" == "clang" ]; then
|
|
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
|
|
|
sudo add-apt-repository "deb http://apt.llvm.org/${{ matrix.ubuntu }}/ llvm-toolchain-${{ matrix.ubuntu }}-${{ matrix.compiler-version }} main"
|
|
|
|
fi
|
2020-04-02 18:22:44 +00:00
|
|
|
sudo apt-get -qq update
|
2020-04-24 01:09:59 +00:00
|
|
|
sudo apt-get purge libjpeg9-dev:amd64 libjpeg8-dev:amd64 libjpeg-turbo8-dev:amd64
|
2020-04-02 22:17:36 +00:00
|
|
|
sudo apt-get install \
|
2020-04-23 23:50:16 +00:00
|
|
|
${{ matrix.packages }} \
|
2020-04-24 01:09:59 +00:00
|
|
|
build-essential \
|
2020-04-02 22:17:36 +00:00
|
|
|
checkinstall \
|
2020-04-24 01:09:59 +00:00
|
|
|
pkg-config \
|
2020-04-02 22:17:36 +00:00
|
|
|
cmake \
|
|
|
|
ninja-build \
|
|
|
|
git \
|
2020-04-24 01:09:59 +00:00
|
|
|
qt5-default libqwt-qt5-dev libqt5svg5-dev
|
2020-04-23 23:50:16 +00:00
|
|
|
${{ matrix.extra_command }}
|
2020-07-15 19:43:49 +00:00
|
|
|
- name: "Cache: Prerequisites"
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build/temp/libobs-download/libobs-download-prefix/src/libobs.7z
|
|
|
|
key: ${{ matrix.id }}
|
2020-02-13 09:11:33 +00:00
|
|
|
- name: "Configure Project"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-04-02 22:17:36 +00:00
|
|
|
cmake -H. -B"build/temp" -DCMAKE_PACKAGE_NAME="streamfx-${{ matrix.id }}" -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
|
2020-02-13 09:11:33 +00:00
|
|
|
- name: "Build Project"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-04-02 18:22:44 +00:00
|
|
|
cmake --build "build/temp" --config RelWithDebInfo --target install
|
2020-02-13 09:11:33 +00:00
|
|
|
- name: "Package Project"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-02-13 09:15:23 +00:00
|
|
|
mkdir build/package
|
2020-04-02 18:22:44 +00:00
|
|
|
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_7Z
|
|
|
|
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_ZIP
|
2020-02-13 09:11:33 +00:00
|
|
|
- name: "Upload Artifacts"
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-04-02 22:17:36 +00:00
|
|
|
name: ${{ matrix.id }}
|
2020-04-23 23:50:16 +00:00
|
|
|
path: build/package
|