Skip to content

Commit 080f078

Browse files
committed
Create button for copy console logs to clipboard
1 parent 1409fab commit 080f078

34 files changed

+198
-54
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: "Install clip Dependency"
2+
description: "Install clip Dependency using cache when possible"
3+
inputs:
4+
cpu:
5+
description: "CPU architecture to build for"
6+
required: false
7+
default: "x86_64"
8+
version:
9+
description: "Version of clip to build"
10+
required: true
11+
global_cache_index:
12+
description: "Global cache index"
13+
required: true
14+
15+
runs:
16+
using: "composite"
17+
steps:
18+
- name: Check required inputs
19+
shell: bash
20+
run: |
21+
[[ "${{ inputs.version }}" ]] || { echo "version input is empty" ; exit 1; }
22+
[[ "${{ inputs.global_cache_index }}" ]] || { echo "global_cache_index input is empty" ; exit 1; }
23+
24+
- name: Cache clip
25+
id: cache-clip
26+
uses: actions/cache/restore@v4
27+
with:
28+
path: dependencies/clip_install
29+
key: clip-${{inputs.version}}-${{runner.os}}-${{inputs.cpu}}-${{inputs.global_cache_index}}-0
30+
31+
- name: Checkout clip
32+
if: steps.cache-clip.outputs.cache-hit != 'true'
33+
uses: actions/checkout@v4
34+
with:
35+
repository: dacap/clip
36+
path: "./dependencies/clip"
37+
ref: ${{inputs.version}}
38+
39+
- name: Setup clip
40+
if: steps.cache-clip.outputs.cache-hit != 'true'
41+
working-directory: ${{github.workspace}}/dependencies
42+
shell: bash
43+
run: |
44+
mkdir clip_build
45+
mkdir clip_install
46+
47+
- name: Configure clip
48+
if: steps.cache-clip.outputs.cache-hit != 'true'
49+
working-directory: ${{github.workspace}}/dependencies/clip_build
50+
shell: bash
51+
run: >
52+
cmake ../clip
53+
-DBUILD_SHARED_LIBS=ON
54+
-DCMAKE_BUILD_TYPE=Release
55+
-DCMAKE_INSTALL_PREFIX:PATH=../clip_install
56+
-DCMAKE_PREFIX_PATH:PATH=../install/
57+
${{ runner.os == 'macOS' && '-DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DCMAKE_MACOSX_RPATH=ON' || null }}
58+
${{ runner.os == 'Windows' && '-Ax64 -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL' || null }}
59+
60+
- name: Build clip
61+
if: steps.cache-clip.outputs.cache-hit != 'true'
62+
working-directory: ${{github.workspace}}/dependencies/clip_build
63+
shell: bash
64+
run: cmake --build . --parallel 2 --target install --config Release
65+
66+
- name: Copy to install directory (F3D compatibility)
67+
working-directory: ${{github.workspace}}/dependencies/clip_install
68+
shell: bash
69+
run: cp -r ./* ../install/
70+
71+
- name: Save clip cache
72+
if: steps.cache-clip.outputs.cache-hit != 'true'
73+
uses: actions/cache/save@v4
74+
with:
75+
key: ${{ steps.cache-clip.outputs.cache-primary-key }}
76+
path: dependencies/clip_install

.github/actions/f3d-dependencies/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,11 @@ runs:
116116
cpu: ${{inputs.cpu}}
117117
version: ${{inputs.webp_version}}
118118
global_cache_index: ${{inputs.global_cache_index}}
119+
120+
- name: Install clip dependency
121+
if: inputs.clip_version != ''
122+
uses: ./source/.github/actions/clip-install-dep
123+
with:
124+
cpu: ${{inputs.cpu}}
125+
version: ${{inputs.clip_version}}
126+
global_cache_index: ${{inputs.global_cache_index}}

.github/actions/generic-ci/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ inputs:
8080
webp_version:
8181
description: "Version of webp to build"
8282
required: true
83+
clip_version:
84+
description: "Version of clip to build"
85+
required: true
8386
zlib_version:
8487
description: "Version of zlib to build"
8588
required: true
@@ -120,6 +123,7 @@ runs:
120123
tbb_version: ${{inputs.tbb_version}}
121124
usd_version: ${{inputs.usd_version}}
122125
webp_version: ${{inputs.webp_version}}
126+
clip_version: ${{inputs.clip_version}}
123127
zlib_version: ${{inputs.zlib_version}}
124128
global_cache_index: ${{inputs.global_cache_index}}
125129

@@ -224,6 +228,7 @@ runs:
224228
-DF3D_MACOS_BUNDLE=${{ inputs.bundle_label == 'bundle' && 'ON' || 'OFF' }}
225229
-DF3D_MODULE_EXR=${{ inputs.optional_deps_label == 'optional-deps' && 'ON' || 'OFF' }}
226230
-DF3D_MODULE_WEBP=${{ inputs.optional_deps_label == 'optional-deps' && 'ON' || 'OFF' }}
231+
-DF3D_MODULE_CLIP=${{ inputs.optional_deps_label == 'optional-deps' && 'ON' || 'OFF' }}
227232
-DF3D_MODULE_RAYTRACING=${{ inputs.ospray_version != '' && 'ON' || 'OFF' }}
228233
-DF3D_MODULE_UI=${{ inputs.optional_deps_label == 'optional-deps' && 'ON' || 'OFF' }}
229234
-DF3D_MODULE_DMON=${{ inputs.optional_deps_label == 'optional-deps' && 'ON' || 'OFF' }}

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ option(F3D_MODULE_WEBP "WebP images module" OFF)
101101
option(F3D_MODULE_UI "ImGui widgets module" ON)
102102
option(F3D_MODULE_DMON "dmon (watch) module" ON)
103103
option(F3D_MODULE_TINYFILEDIALOGS "tinyfiledialogs module" ON)
104+
option(F3D_MODULE_CLIP "clip (board) module" ON)
104105

105106
# Use externals
106107
option(F3D_USE_EXTERNAL_CXXOPTS "Use external cxxopts dependency" OFF)
@@ -322,6 +323,7 @@ f3d_report_variable(F3D_MODULE_EXR)
322323
f3d_report_variable(F3D_MODULE_RAYTRACING)
323324
f3d_report_variable(F3D_MODULE_UI)
324325
f3d_report_variable(F3D_MODULE_WEBP)
326+
f3d_report_variable(F3D_MODULE_CLIP)
325327
f3d_report_variable(F3D_PLUGIN_BUILD_ALEMBIC)
326328
f3d_report_variable(F3D_PLUGIN_BUILD_ASSIMP)
327329
f3d_report_variable(F3D_PLUGIN_BUILD_DRACO)
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)