From 5933328cae06184a09f694f9eb3f17a6d85deb98 Mon Sep 17 00:00:00 2001 From: Marat Dukhan Date: Mon, 27 May 2024 21:46:29 -0700 Subject: [PATCH] Test gcc with x87 FPU in GitHub Actions CI --- .github/workflows/cmake.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index c1a49b5..ba12241 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -26,6 +26,27 @@ jobs: run: cmake --build build --parallel - name: Test run: ctest --test-dir build --parallel --output-on-failure + cmake-linux-x86: + runs-on: ubuntu-20.04 + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + - name: Update apt + run: sudo apt update + - name: Install multilib gcc + run: sudo apt install gcc-multilib g++-multilib + - name: Install ninja + run: sudo apt install ninja-build + - name: Configure + run: cmake -Bbuild -S. -G Ninja -DCMAKE_BUILD_TYPE=Release -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON + env: + CFLAGS: "-m32 -mfpmath=387" + CXXFLAGS: "-m32 -mfpmath=387" + LDFLAGS: "-m32" + - name: Build + run: cmake --build build --parallel + - name: Test + run: ctest --test-dir build --parallel --output-on-failure cmake-macos-x86_64: runs-on: macos-12 timeout-minutes: 15 @@ -56,6 +77,7 @@ jobs: - name: Configure run: cmake -Bbuild -S. -G "Visual Studio 16 2019" -A Win32 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON env: + CFLAGS: "/arch:IA32" CXXFLAGS: "/arch:IA32" - name: Build run: cmake --build build --config Release --parallel