-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update our build system with obs-plugintemplate (#357)
* actions * scripts * workflows * Update * fix * Fix * Update background-filter.cpp * Fix * Format * Update CMakeLists.txt * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Fix linux build * Fix * Update FetchOnnxruntime.cmake * Update background-filter.cpp * Update FetchOnnxruntime.cmake * Fix codesign * delete * PKG * Update FetchOnnxruntime.cmake * Update FetchOnnxruntime.cmake * Update FetchOnnxruntime.cmake * Fix * Fix * Update xcode.cmake * skip win opencv python * Use OBS 28.0.1 * Template * Revert "Use OBS 28.0.1" This reverts commit a56e466. * Revert "Revert "Use OBS 28.0.1"" This reverts commit 6265d5a. * Revert "Revert "Use OBS 28.0.1"" This reverts commit 6265d5a. * Update buildspec_common.cmake * Revert "Update buildspec_common.cmake" This reverts commit f82ddcf. * Revert "Revert "Revert "Use OBS 28.0.1""" This reverts commit 78fe400. * Revert "Revert "Revert "Use OBS 28.0.1""" This reverts commit 5eebf39. * Revert "Revert "Revert "Revert "Use OBS 28.0.1"""" This reverts commit 791e4bf. * Update buildspec_common.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update compiler_common.cmake * Update compiler_common.cmake * Fix --------- Co-authored-by: Roy Shilkrot <roy.shil@gmail.com>
- Loading branch information
Showing
134 changed files
with
6,998 additions
and
4,093 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: 'Set up and build plugin' | ||
description: 'Builds the plugin for specified architecture and build config' | ||
inputs: | ||
target: | ||
description: 'Target architecture for dependencies' | ||
required: true | ||
config: | ||
description: 'Build configuration' | ||
required: false | ||
default: 'RelWithDebInfo' | ||
codesign: | ||
description: 'Enable codesigning (macOS only)' | ||
required: false | ||
default: 'false' | ||
codesignIdent: | ||
description: 'Developer ID for application codesigning (macOS only)' | ||
required: false | ||
default: '-' | ||
workingDirectory: | ||
description: 'Working directory for packaging' | ||
required: false | ||
default: ${{ github.workspace }} | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Run macOS Build | ||
if: runner.os == 'macOS' | ||
shell: zsh --no-rcs --errexit --pipefail {0} | ||
working-directory: ${{ inputs.workingDirectory }} | ||
env: | ||
CODESIGN_IDENT: ${{ inputs.codesignIdent }} | ||
CODESIGN_TEAM: ${{ inputs.codesignTeam }} | ||
run: | | ||
: Run macOS Build | ||
local -a build_args=(--config ${{ inputs.config }}) | ||
if (( ${+RUNNER_DEBUG} )) build_args+=(--debug) | ||
if [[ '${{ inputs.codesign }}' == 'true' ]] build_args+=(--codesign) | ||
.github/scripts/build-macos ${build_args} | ||
- name: Install Dependencies 🛍️ | ||
if: runner.os == 'Linux' | ||
shell: bash | ||
run: | | ||
: Install Dependencies 🛍️ | ||
echo ::group::Install Dependencies | ||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH | ||
brew install --quiet zsh | ||
echo ::endgroup:: | ||
- name: Run Ubuntu Build | ||
if: runner.os == 'Linux' | ||
shell: zsh --no-rcs --errexit --pipefail {0} | ||
working-directory: ${{ inputs.workingDirectory }} | ||
run: | | ||
: Run Ubuntu Build | ||
local -a build_args=( | ||
--target linux-${{ inputs.target }} | ||
--config ${{ inputs.config }} | ||
) | ||
if (( ${+RUNNER_DEBUG} )) build_args+=(--debug) | ||
.github/scripts/build-linux ${build_args} | ||
- name: Run Windows Build | ||
if: runner.os == 'Windows' | ||
shell: pwsh | ||
run: | | ||
# Run Windows Build | ||
if ( $Env:RUNNER_DEBUG -ne $null ) { | ||
Set-PSDebug -Trace 1 | ||
} | ||
$BuildArgs = @{ | ||
Target = '${{ inputs.target }}' | ||
Configuration = '${{ inputs.config }}' | ||
} | ||
.github/scripts/Build-Windows.ps1 @BuildArgs | ||
- name: Create Summary 📊 | ||
if: contains(fromJSON('["Linux", "macOS"]'),runner.os) | ||
shell: zsh --no-rcs --errexit --pipefail {0} | ||
env: | ||
CCACHE_CONFIGPATH: ${{ inputs.workingDirectory }}/.ccache.conf | ||
run: | | ||
: Create Summary 📊 | ||
local -a ccache_data | ||
if (( ${+RUNNER_DEBUG} )) { | ||
setopt XTRACE | ||
ccache_data=("${(fA)$(ccache -s -vv)}") | ||
} else { | ||
ccache_data=("${(fA)$(ccache -s)}") | ||
} | ||
print '### ${{ runner.os }} Ccache Stats (${{ inputs.target }})' >> $GITHUB_STEP_SUMMARY | ||
print '```' >> $GITHUB_STEP_SUMMARY | ||
for line (${ccache_data}) { | ||
print ${line} >> $GITHUB_STEP_SUMMARY | ||
} | ||
print '```' >> $GITHUB_STEP_SUMMARY |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.