Skip to content

Commit

Permalink
added MinGW work flow and updated case lib prefix in dynlink_impl_win…
Browse files Browse the repository at this point in the history
…32.c
  • Loading branch information
RohanKrMahato committed Nov 27, 2024
1 parent d97f393 commit 27ee8be
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,49 @@ jobs:
env:
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests

windows-mingw-test:
name: Windows MinGW Test
runs-on: windows-latest

steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
update: true
install: >
base-devel
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-make
cache: false
- name: Wait for MSYS2 to complete setup
run: sleep 60
- name: Add MSYS2 to PATH
run: |
echo "C:\msys64\mingw64\bin" >> $Env:GITHUB_PATH
echo "C:\msys64\usr\bin" >> $Env:GITHUB_PATH
- name: Create build directory
run: mkdir build

- name: Configure with CMake
working-directory: ./build
run: |
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DOPTION_FORK_SAFE=OFF -DOPTION_BUILD_PLUGINS_BACKTRACE=OFF ..
- name: Build with CMake
working-directory: ./build
run: cmake --build .

- name: Run CTest
working-directory: ./build
run: |
ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 5400 --output-on-failure -C Debug
shell: bash

windows-distributable:
name: Windows Distributable Dispatch
needs: windows-test
Expand Down

0 comments on commit 27ee8be

Please sign in to comment.