fix: update test ubuntu ci

This commit is contained in:
darshankabariya 2026-01-27 11:15:33 +05:30
parent 86bc2e5e09
commit d57ecf3146
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22

View File

@ -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