Skip to content

Commit

Permalink
Fix mode
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jun 10, 2024
1 parent a1e796b commit 25de286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,31 @@ runs:
shell: bash

# Configure
- if: runner.os == 'windows' && inputs.step == 'configure' && inputs.type == 'static'
- if: runner.os == 'windows' && inputs.step == 'configure' && inputs.mode == 'static'
shell: pwsh
run: >
cmake -S . -B ./build
-DCMAKE_BUILD_TYPE:STRING=Release
-DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON
${{ inputs.options }}
- if: runner.os == 'windows' && inputs.step == 'configure' && inputs.type == 'shared'
- if: runner.os == 'windows' && inputs.step == 'configure' && inputs.mode == 'shared'
shell: pwsh
run: >
cmake -S . -B ./build
-DCMAKE_BUILD_TYPE:STRING=Release
-DBUILD_SHARED_LIBS:BOOL=ON
-DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON
${{ inputs.options }}
- if: runner.os != 'windows' && inputs.step == 'configure' && inputs.type == 'static'
- if: runner.os != 'windows' && inputs.step == 'configure' && inputs.mode == 'static'
shell: bash
run: >
cmake -S . -B ./build
-DCMAKE_BUILD_TYPE:STRING=Release
-DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON
${{ inputs.options }}
- if: runner.os != 'windows' && inputs.step == 'configure' && inputs.type == 'shared'
- if: runner.os != 'windows' && inputs.step == 'configure' && inputs.mode == 'shared'
shell: bash
run: >
cmake -S . -B ./build
Expand Down

0 comments on commit 25de286

Please sign in to comment.