Skip to content

Commit

Permalink
test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanKrMahato committed Nov 25, 2024
1 parent e29f318 commit 8d9a33a
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,36 +66,41 @@ jobs:
env:
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests

windows-mingw-test:
name: Windows MinGW Test


mingw-test:
name: MinGW Test
runs-on: windows-2019
defaults:
run:
shell: bash

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

- name: Install MSYS2
run: choco install -y msys2

- name: Initialize MSYS2
- name: Add MinGW to PATH
run: |
C:\msys64\usr\bin\bash.exe -lc "pacman -Syu --noconfirm"
C:\msys64\usr\bin\bash.exe -lc "pacman -S --noconfirm mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake"
echo "Adding MinGW to PATH"
echo "::add-path::C:\msys64\usr\bin"
- name: Verify GCC Version
- name: Check MinGW Version
run: |
C:\msys64\usr\bin\bash.exe -lc "gcc --version"
gcc --version
g++ --version
- name: Configure and Build with MinGW
- name: Configure with CMake
run: |
mkdir build
cd build
cmake -G "MinGW Makefiles" -DOPTION_FORK_SAFE=OFF -DOPTION_BUILD_PLUGINS_BACKTRACE=OFF ..
- name: Build with CMake
run: |
C:\msys64\usr\bin\bash.exe -lc "
mkdir -p build &&
cd build &&
cmake -G 'MinGW Makefiles' -DOPTION_FORK_SAFE=OFF -DOPTION_BUILD_PLUGINS_BACKTRACE=OFF -DCMAKE_EXE_LINKER_FLAGS='-lpsapi' .. &&
cmake --build .
"
cd build
cmake --build .
windows-distributable:
name: Windows Distributable Dispatch
Expand Down

0 comments on commit 8d9a33a

Please sign in to comment.