Skip to content

Commit

Permalink
try msys
Browse files Browse the repository at this point in the history
  • Loading branch information
mradugin authored Jul 13, 2024
1 parent 55863ad commit c78f1c5
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
build_type: Debug
- os: windows-latest
generator: Ninja
c_compiler: cl
cpp_compiler: cl
c_compiler: gcc
cpp_compiler: g++
build_type: Debug
- os: ubuntu-latest
generator: Ninja
Expand Down Expand Up @@ -90,6 +90,20 @@ jobs:
run: |
brew install ninja
- uses: Install MSYS2 (windows)
if: matrix.os == 'windows-latest' && matrix.generator == 'Ninja'
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
Expand All @@ -101,6 +115,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
shell: bash
run: |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -S "${{ steps.strings.outputs.source-dir }}" -B "${{ steps.strings.outputs.build-output-dir }}" -G "${{matrix.generator}}"
Expand Down

0 comments on commit c78f1c5

Please sign in to comment.