Skip to content

Commit

Permalink
Update cmake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gogoshika-ga committed Oct 16, 2024
1 parent 5185054 commit edda251
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ name: CMake Build and Test
on:
workflow_call:
inputs:
build_type:
build_typez:
description: 'Build type (e.g., "Debug", "Release", "RelWithDebInfo", "MinSizeRel")'
default: '"Debug"'
required: true
type: string

Expand All @@ -27,7 +28,7 @@ jobs:
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
build_type: ${{ fromJSON(format('[{0}]', inputs.build_type || '["Debug","Release"]')) }}
build_type: ${{ fromJSON(format('[{0}]', inputs.build_typez || '"Debug","Release"')) }}
c_compiler: [gcc, clang, cl]
include:
- os: windows-latest
Expand Down

0 comments on commit edda251

Please sign in to comment.