2019-09-03 19:18:14 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2019-12-18 05:46:03 +00:00
|
|
|
windows:
|
2020-01-14 08:32:58 +00:00
|
|
|
runs-on: windows-2019
|
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-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-02-13 09:11:33 +00:00
|
|
|
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
|
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: |
|
|
|
|
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /Qp ".\build\64\installer.iss"
|
|
|
|
- name: "Upload Artifacts"
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-01-14 08:41:24 +00:00
|
|
|
name: windows
|
2019-12-18 05:46:03 +00:00
|
|
|
path: build/package
|
2020-02-13 09:11:33 +00:00
|
|
|
windows-speed:
|
|
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
|
|
|
- name: "Clone Repository"
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- 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: |
|
2020-02-13 09:15:23 +00:00
|
|
|
mkdir build/package
|
2020-02-13 09:11:33 +00:00
|
|
|
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\64\installer.iss"
|
|
|
|
- name: "Upload Artifacts"
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-02-13 09:15:44 +00:00
|
|
|
name: windows-speed
|
2020-02-13 09:11:33 +00:00
|
|
|
path: build/package
|