set cpu when compiling in ci

This commit is contained in:
Ivan FB 2026-03-29 23:08:00 +02:00
parent dd5eed3960
commit 2e4388136d
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -127,7 +127,6 @@ jobs:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 14
sudo update-alternatives --set gcc /usr/bin/gcc-14
- name: Install Nim (pinned)
uses: iffy/install-nim@v5
with:
@ -185,7 +184,15 @@ jobs:
find . -name ssl_server_full_ec.o -exec file {} \;
- name: Build binaries
run: make V=1 QUICK_AND_DIRTY_COMPILER=1 USE_LIBBACKTRACE=0 all
run: |
NIM_PARAMS=""
if [[ '${{ runner.os }}' == 'macOS' ]]; then
case "$(uname -m)" in
x86_64) NIM_PARAMS="--cpu:amd64" ;;
arm64) NIM_PARAMS="--cpu:arm64" ;;
esac
fi
make V=1 QUICK_AND_DIRTY_COMPILER=1 NIM_PARAMS="${NIM_PARAMS}" USE_LIBBACKTRACE=0 all
build-windows:
needs: changes
@ -273,7 +280,6 @@ jobs:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 14
sudo update-alternatives --set gcc /usr/bin/gcc-14
- name: Install Nim (pinned)
uses: iffy/install-nim@v5
with:
@ -336,13 +342,19 @@ jobs:
export NIMFLAGS="--colors:off -d:chronicles_colors:none"
fi
NIM_PARAMS=""
if [[ '${{ runner.os }}' == 'macOS' ]]; then
case "$(uname -m)" in
x86_64) NIM_PARAMS="--cpu:amd64" ;;
arm64) NIM_PARAMS="--cpu:arm64" ;;
esac
fi
export MAKEFLAGS="-j1"
export USE_LIBBACKTRACE=0
make V=1 LOG_LEVEL=DEBUG POSTGRES=$postgres_enabled NIM_PARAMS="-d:BORINGSS_USE_ASM=false" test
make V=1 LOG_LEVEL=DEBUG POSTGRES=$postgres_enabled NIM_PARAMS="-d:BORINGSS_USE_ASM=false" testwakunode2
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
make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled NIM_PARAMS="${NIM_PARAMS}" test
make V=1 LOG_LEVEL=DEBUG QUICK_AND_DIRTY_COMPILER=1 POSTGRES=$postgres_enabled NIM_PARAMS="${NIM_PARAMS}" testwakunode2
build-docker-image:
needs: changes