Skip to content

Commit

Permalink
test 10
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanKrMahato committed Dec 3, 2024
1 parent f52578f commit 7b8649e
Showing 1 changed file with 32 additions and 54 deletions.
86 changes: 32 additions & 54 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,64 +69,42 @@ jobs:
windows-mingw-test:
name: Windows MinGW Test
runs-on: windows-latest

strategy:
matrix:
sys:
- mingw64
- mingw32
- ucrt64
- clang64
fail-fast: false
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: >
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-make
msystem: ${{ matrix.sys }}
cache: true

- name: Add MSYS2 to PATH
run: |
echo "C:\\msys64\\mingw64\\bin" >> $Env:GITHUB_PATH
echo "C:\\msys64\\usr\\bin" >> $Env:GITHUB_PATH
# Step 5: Set MSYS2 shell to the appropriate MinGW environment
# - name: Set MSYS2 shell
# run: echo "MSYSTEM=${{ matrix.sys }}" >> $Env:GITHUB_ENV

# Step 6: Create build directory
- name: Create build directory
run: mkdir build

# Step 7: Configure with CMake
- 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 ..
shell: msys2 {0}

# Step 8: Build with CMake
- name: Build with CMake
working-directory: ./build
run: cmake --build .
matrix:
include:
- { icon: '⬛', sys: mingw32 }
- { icon: '🟦', sys: mingw64 }
- { icon: '🟨', sys: ucrt64 }
- { icon: '🟧', sys: clang64 }
name: 🚧${{ matrix.icon }} ${{ matrix.sys }}
defaults:
run:
shell: msys2 {0}

# Step 9: Run CTest
- name: Run CTest
working-directory: ./build
run: |
ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 5400 --output-on-failure -C Debug
shell: msys2 {0}
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: '${{ matrix.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
- name: '🚧 Build TOOL'
run: |
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
windows-distributable:
name: Windows Distributable Dispatch
Expand Down

0 comments on commit 7b8649e

Please sign in to comment.