Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Saigut committed Jan 24, 2025
1 parent ed1f362 commit f4605cb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Validate build type
if: matrix.build_type == ''
run: |
echo "Error: matrix.build_type is empty. Please set a valid build type (e.g., Release, Debug)."
exit 1
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -96,9 +102,8 @@ jobs:
-S ${{ github.workspace }}
- name: Build
# Build your program with the given configuration.
run: |
cmake --build ${{ steps.strings.outputs.build-output-dir }}
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
Expand Down

0 comments on commit f4605cb

Please sign in to comment.