mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-06 06:53:18 +00:00
fix: update test ubuntu ci
This commit is contained in:
parent
86bc2e5e09
commit
d57ecf3146
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user