Skip to content

Commit 8b8af56

Browse files
committed
Build workflow: add 'build-type' as parameter (optional)
1 parent e329503 commit 8b8af56

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ on:
1515
required: true
1616
type: string
1717
rebuild-all:
18-
description: "Rebuild all"
18+
description: 'Rebuild all'
1919
required: False
2020
type: boolean
2121
default: False
22+
build-type:
23+
description: 'Build type'
24+
required: true
25+
type: string
26+
default: 'Release'
2227

2328
jobs:
2429
build-deps:
@@ -34,7 +39,8 @@ jobs:
3439
os: [ubuntu-latest, windows-latest, macos-15-intel, macos-15-arm64]
3540

3641
env:
37-
BUILD_TYPE: Release
42+
BUILD_TYPE: ${{ inputs.build-type || 'Release' }}
43+
DEPS_BUILD_TYPE: ${{ inputs.build-type || 'Release' }}
3844
# SANITIZE: true # uncomment to sanitize
3945
CXX_VERSION: 20
4046
GCC_VERSION: 14
@@ -205,6 +211,7 @@ jobs:
205211
CONTAINER_COMMAND: |
206212
# Set environment variables (use jinja)
207213
export BUILD_TYPE=${{ env.BUILD_TYPE }}
214+
export DEPS_BUILD_TYPE=${{ env.DEPS_BUILD_TYPE }}
208215
export GCC_VERSION=${{ env.GCC_VERSION }}
209216
export ASAN_PATH=${{ env.ASAN_PATH }}
210217
export WORKSPACE=${{ env.WORKSPACE }}

utils/local-CI-build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ act workflow_call \
1616
--var conan_log_level=debug \
1717
--input luxdeps-version=test \
1818
--input rebuild-all=true \
19+
--input build-type=Debug \
1920
--action-offline-mode \
2021
--workflows ./.github/workflows/build.yml \
2122
--job build-deps \

0 commit comments

Comments
 (0)