Fix Windows MSVC build: hoist CB*_I8_RECIP out of __ARM_NEON guard #287
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| arch: x86_64 | |
| cmake_extra: "" | |
| - os: macos-latest | |
| arch: arm64 | |
| cmake_extra: "" | |
| - os: windows-latest | |
| arch: x64 | |
| cmake_extra: "" | |
| runs-on: ${{ matrix.os }} | |
| name: ${{ matrix.os }} (${{ matrix.arch }}) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install dependencies (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y cmake | |
| - name: Configure CMake | |
| run: > | |
| cmake -B build | |
| -DCMAKE_BUILD_TYPE=Release | |
| -DTQ_BUILD_TESTS=ON | |
| -DTQ_BUILD_BENCH=ON | |
| -DTQ_BUILD_SERVER=ON | |
| ${{ matrix.cmake_extra }} | |
| - name: Build (Unix) | |
| if: runner.os != 'Windows' | |
| run: cmake --build build --config Release -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) | |
| - name: Build (Windows) | |
| if: runner.os == 'Windows' | |
| run: cmake --build build --config Release -j $env:NUMBER_OF_PROCESSORS | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure --timeout 120 -C Release | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-${{ matrix.os }}-${{ matrix.arch }} | |
| path: build/Testing/ | |
| retention-days: 7 |