try configuring macos build in github actions #26
Workflow file for this run
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: CMake | ||
on: [push, pull_request] | ||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
build_config: Release | ||
jobs: | ||
build_windows: | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
shell: cmd | ||
env: | ||
DepsBasePath: 'D:\obs-deps' | ||
DepsPath32: 'D:\obs-deps\win32' | ||
DepsPath64: 'D:\obs-deps\win64' | ||
QtBaseDir: 'D:\QtDep' | ||
QTDIR32: 'D:\QtDep\5.10.1\msvc2017' | ||
QTDIR64: 'D:\QtDep\5.10.1\msvc2017_64' | ||
OBSPath: 'D:\obs-studio' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache Windows dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{env.OBSPath}} | ||
key: ${{ runner.os }}-windows-build-deps | ||
- name: Install Qt | ||
run: ./ci/windows/install-qt-win.cmd | ||
- name: Download OBS Studio dependencies | ||
run: ./ci/windows/download-obs-deps.cmd | ||
- name: Checkout & CMake OBS Studio | ||
run: ./ci/windows/prepare-obs-windows.cmd | ||
- name: Build libobs 32-bit | ||
run: cmake --build build32/libobs --config ${{env.build_config}} | ||
working-directory: ${{env.OBSPath}} | ||
- name: Build libobs 64-bit | ||
run: cmake --build build64/libobs --config ${{env.build_config}} | ||
working-directory: ${{env.OBSPath}} | ||
- name: CMake Plugin | ||
run: ./ci/windows/prepare-windows.cmd | ||
- name: Build Plugin 32-bit | ||
run: cmake --build build32 --config ${{env.build_config}} | ||
- name: Build Plugin 64-bit | ||
run: cmake --build build64 --config ${{env.build_config}} | ||
- name: Package Plugin | ||
run: ./ci/windows/package-windows.cmd | ||
- name: Upload Build | ||
uses: actions/[email protected] | ||
with: | ||
name: windows-build | ||
path: ./package/* | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash ./ci/linux/install-dependencies-ubuntu.sh | ||
- name: Build Plugin | ||
run: bash ./ci/linux/build-ubuntu.sh | ||
- name: Package Plugin | ||
run: bash ./ci/linux/package-ubuntu.sh | ||
- name: Upload Build | ||
uses: actions/[email protected] | ||
with: | ||
name: linux-build | ||
path: ./package/obs-screen-flash-filter_0-1_amd64.deb | ||
build_macos: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash ./ci/macos/install-dependencies-macos.sh | ||
- name: Build Plugin | ||
run: bash ./ci/macos/build-macos.sh | ||
- name: Package Plugin | ||
run: bash ./ci/macos/package-macos.sh | ||
- name: Upload Build | ||
uses: actions/[email protected] | ||
with: | ||
name: macos-build | ||
path: ./package/obs-screen-flash-filter_0-1.pkg |