Skip to content

Commit 05fb789

Browse files
authored
Merge pull request #977 from CodeFHD/for_v2.10
Fix missing CMAKE_BUILD_TYPE handling in reusable workflow
2 parents 16501f1 + 5326a52 commit 05fb789

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/build_bundle.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ name: BlendLuxCore Build Bundle
66

77
on:
88
pull_request:
9+
inputs:
10+
build_type:
11+
required: false
12+
type: string
13+
default: "Latest"
914
workflow_call:
15+
inputs:
16+
build_type:
17+
required: true
18+
type: string
19+
default: "Latest"
1020

1121
jobs:
1222
build_bundle:
@@ -44,7 +54,7 @@ jobs:
4454
run: |
4555
build_dir="${{ github.workspace }}/build"
4656
mkdir ${build_dir}
47-
cmake -B ${build_dir} -S . -DCMAKE_BUILD_TYPE=Release
57+
cmake -B ${build_dir} -S . -DCMAKE_BUILD_TYPE=${{ inputs.build_type }}
4858
cmake --build ${build_dir}
4959
5060
- name: Upload artifact

.github/workflows/bundle_latest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
build_latest:
1515
name: Build Latest Bundle
1616
uses: ./.github/workflows/build_bundle.yml
17+
with:
18+
build_type: "Latest"
1719

1820
create_release:
1921
name: Create Latest Release

.github/workflows/bundle_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
build_latest:
1414
name: Build Latest Bundle
1515
uses: ./.github/workflows/build_bundle.yml
16+
with:
17+
build_type: "Release"
1618

1719
create_release:
1820
name: Create release

0 commit comments

Comments
 (0)