obs-StreamFX/.github/workflows/main.yml

76 lines
2.7 KiB
YAML

name: CI
on: [push, pull_request]
jobs:
windows:
runs-on: windows-2019
name: "Windows"
steps:
- name: "Clone Repository"
uses: actions/checkout@v1
- name: "Clone Submodules"
shell: bash
run: git submodule update --init --recursive
- name: "Configure Project"
shell: bash
run: |
cmake -H. -B"build/temp" -G"Visual Studio 16 2019" -A"x64" -T"host=x64" -DCMAKE_PACKAGE_NAME=StreamFX -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
- name: "Build Project"
shell: bash
run: |
cmake --build "build/temp" --config RelWithDebInfo --target INSTALL
- name: "Package Project"
shell: bash
run: |
mkdir build/package
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_7Z
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_ZIP
- 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: |
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /Qp ".\build\temp\installer.iss"
- name: "Upload Artifacts"
uses: actions/upload-artifact@v1
with:
name: windows
path: build/package
windows-speed:
runs-on: windows-2019
name: "Windows (Performance)"
steps:
- name: "Clone Repository"
uses: actions/checkout@v1
- name: "Clone Submodules"
shell: bash
run: git submodule update --init --recursive
- name: "Configure Project"
shell: bash
run: |
cmake -H. -B"build/temp" -G"Visual Studio 16 2019" -A"x64" -T"host=x64" -DCMAKE_PACKAGE_NAME=StreamFX -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
- name: "Build Project"
shell: bash
run: |
cmake --build "build/temp" --config Speed --target INSTALL
- name: "Package Project"
shell: bash
run: |
mkdir build/package
cmake --build "build/temp" --config Speed --target PACKAGE_7Z
cmake --build "build/temp" --config Speed --target PACKAGE_ZIP
- 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: |
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /Qp ".\build\temp\installer.iss"
- name: "Upload Artifacts"
uses: actions/upload-artifact@v1
with:
name: windows-speed
path: build/package