From d57ecf3146e3a1ecf6348a423adcf09136063222 Mon Sep 17 00:00:00 2001 From: darshankabariya Date: Tue, 27 Jan 2026 11:15:33 +0530 Subject: [PATCH] fix: update test ubuntu ci --- .github/workflows/ci.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73b1ce366..bec06f084 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ concurrency: env: NPROC: 2 MAKEFLAGS: "-j${NPROC}" - NIMFLAGS: "--parallelBuild:${NPROC} --colors:off -d:chronicles_colors:none" + # Note: Use NIM_PARAMS (not NIMFLAGS) to pass Nim compiler flags - that's what the Makefile reads jobs: changes: # changes detection @@ -96,7 +96,13 @@ jobs: grep -c nimcrypto nimble.paths || echo "WARNING: nimcrypto not found in nimble.paths!" - name: Build binaries - run: make V=1 QUICK_AND_DIRTY_COMPILER=1 USE_LIBBACKTRACE=0 all tools + run: | + # On Linux, disable march=native to avoid SIMD instruction issues on GitHub Actions runners + if [ ${{ runner.os }} == "Linux" ]; then + make V=1 QUICK_AND_DIRTY_COMPILER=1 USE_LIBBACKTRACE=0 NIM_PARAMS="-d:disableMarchNative" all tools + else + make V=1 QUICK_AND_DIRTY_COMPILER=1 USE_LIBBACKTRACE=0 all tools + fi build-windows: needs: changes @@ -152,17 +158,20 @@ jobs: if [ ${{ runner.os }} == "Linux" ]; then sudo docker run --rm -d -e POSTGRES_PASSWORD=test123 -p 5432:5432 postgres:15.4-alpine3.18 postgres_enabled=1 - # Disable march=native on Linux to avoid potential nimcrypto SHA2 issues - export NIMFLAGS="--colors:off -d:chronicles_colors:none -d:disableMarchNative" - else - export NIMFLAGS="--colors:off -d:chronicles_colors:none" fi export MAKEFLAGS="-j1" export USE_LIBBACKTRACE=0 - make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled test - make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled testwakunode2 + # Use NIM_PARAMS (not NIMFLAGS) - that's what the Makefile and nimble scripts read + # On Linux, disable march=native to avoid SIMD instruction issues on GitHub Actions runners + if [ ${{ runner.os }} == "Linux" ]; then + make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled NIM_PARAMS="-d:disableMarchNative" test + make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled NIM_PARAMS="-d:disableMarchNative" testwakunode2 + else + make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled test + make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled testwakunode2 + fi build-docker-image: needs: changes