Skip to content

test: Make json comparison order independent #1664

test: Make json comparison order independent

test: Make json comparison order independent #1664

Workflow file for this run

name: MSYS2
on: [push, pull_request]
jobs:
mingw:
name: mingw
runs-on: windows-latest
strategy:
matrix:
#fail-fast: false
include:
# Deprecate 32 bits - { icon: '⬛', sys: mingw32 }
- { icon: '🟦', sys: mingw64 }
- { icon: '🟨', sys: ucrt64 } # Experimental!
- { icon: '🟧', sys: clang64 } # Experimental!
defaults:
run:
shell: msys2 {0}
steps:
# see https://github.com/msys2/setup-msys2
- name: checkout
uses: actions/checkout@v2
- 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
cgal:p
nlohmann-json:p
- name: '🚧 Build TOOL'
run: |
MSYSTEM= cmake -G"Ninja" -B build -DCMAKE_BUILD_TYPE=Release -DSFCGAL_BUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=D:/a/_temp/msys64/${{ matrix.sys }} -DSFCGAL_CONFIG_EXECUTABLE=D:/a/_temp/msys64/${{ matrix.sys }}/bin/sfcgal-config
MSYSTEM= cmake --build build
MSYSTEM= cmake --install build
echo "πŸ” Testing sfcgal-config --libs output..."
LIBS_OUTPUT=$(MSYSTEM= D:/a/_temp/msys64/${{ matrix.sys }}/bin/sfcgal-config --libs)
echo "Output: $LIBS_OUTPUT"
if [[ "$LIBS_OUTPUT" =~ -L[[:space:]]*-l ]]; then
echo "❌ ERROR: sfcgal-config --libs returned empty library path: $LIBS_OUTPUT"
exit 1
elif [[ "$LIBS_OUTPUT" =~ -L.*/${{ matrix.sys }}/lib.*-lSFCGAL ]]; then
echo "βœ… SUCCESS: sfcgal-config --libs returned valid path: $LIBS_OUTPUT"
else
echo "⚠️ WARNING: Unexpected format for sfcgal-config --libs: $LIBS_OUTPUT"
fi
MSYSTEM= ctest -V --output-on-failure --test-dir build