Skip to content

Commit

Permalink
Merge pull request #217 from msakai/github-actions-mingw64
Browse files Browse the repository at this point in the history
Add MINGW64 to build matrix
  • Loading branch information
snowberryfield authored Nov 20, 2024
2 parents 3bbf8ae + c4b6063 commit efd1a45
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,25 @@ jobs:
- { os: macos-14, cc: gcc-12, cxx: g++-12 } # 12.4.0
- { os: macos-14, cc: gcc-13, cxx: g++-13 } # 13.3.0
- { os: macos-14, cc: gcc-14, cxx: g++-14 } # 14.1.0_2
- { os: windows-2022, cc: gcc, cxx: g++, msys2_system: mingw64, msys2_arch: x86_64 }

steps:
- uses: actions/checkout@v2

- uses: msys2/setup-msys2@v2
id: msys2
if: matrix.cfg.msys2_system != ''
with:
msystem: ${{matrix.cfg.msys2_system}}
install: >-
make
mingw-w64-${{matrix.cfg.msys2_arch}}-gcc
mingw-w64-${{matrix.cfg.msys2_arch}}-cmake
- if: matrix.cfg.msys2_system != ''
run: |
Add-Content $env:GITHUB_PATH "${{ steps.msys2.outputs.msys2-location }}\${{matrix.cfg.msys2_system}}\bin"
Add-Content $env:GITHUB_PATH "${{ steps.msys2.outputs.msys2-location }}\usr\bin"
- name: Install googletest
run: make -f makefile/Makefile.external CC=${{ matrix.cfg.cc }} CXX=${{ matrix.cfg.cxx }}

Expand Down

0 comments on commit efd1a45

Please sign in to comment.