mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-05-07 07:19:26 +00:00
set cpu when compiling in ci
This commit is contained in:
parent
dd5eed3960
commit
2e4388136d
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user