Skip to content

Commit

Permalink
Support not setting a compiler in the GitHub Action
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
  • Loading branch information
jviotti committed Jun 10, 2024
1 parent 2453614 commit a0edc5d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,23 @@ runs:
CC: gcc
CXX: g++

- if: runner.os == 'windows' && inputs.step == 'configure' && inputs.mode == 'static' && inputs.compiler == ''
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.mode == 'static' && inputs.compiler == ''
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 }}
#############################################
# Build
#############################################
Expand Down

0 comments on commit a0edc5d

Please sign in to comment.