name: VS18-ARM-CI

on: [push, pull_request]

jobs:
  ci:
    name: windows-vs18
    runs-on: windows-latest
    strategy:
      fail-fast: false
      matrix:
        include:
          - {gen: Visual Studio 18 2026, arch: ARM64}
          - {gen: Visual Studio 18 2026, arch: ARM64EC}
    steps:
      - name: checkout
        uses: actions/checkout@v6
      - name: Use cmake
        run: |
          cmake -G "${{matrix.gen}}" -A ${{ matrix.arch }} -DCMAKE_SYSTEM_VERSION="10.0.22621.0" -DSIMDUTF_ALWAYS_INCLUDE_FALLBACK=ON -DCMAKE_CROSSCOMPILING=1 -DSIMDUTF_ICONV=OFF -B build -DSIMDUTF_FAST_TESTS=On &&
          cmake --build build --verbose --parallel
