mirror of
https://github.com/status-im/constantine.git
synced 2025-02-23 09:28:07 +00:00
Add Linux 32-bit to Azure
This commit is contained in:
parent
f57a7bfd77
commit
e3e9fc0e7f
@ -5,7 +5,7 @@
|
||||
\
|
||||
\
|
||||
[](https://travis-ci.com/mratsim/constantine)\
|
||||
[](https://dev.azure.com/numforge/Constantine/_build?definitionId=4&branchName=master)
|
||||
[](https://dev.azure.com/numforge/Constantine/_build?definitionId=4&branchName=master)
|
||||
|
||||
This library provides constant-time implementation of elliptic curve cryptography.
|
||||
|
||||
|
@ -31,11 +31,11 @@ strategy:
|
||||
CHANNEL: devel
|
||||
WEAVE_TEST_LANG: cpp
|
||||
|
||||
# Linux_devel_32bit:
|
||||
# VM: 'ubuntu-16.04'
|
||||
# UCPU: i686
|
||||
# CHANNEL: devel
|
||||
# TEST_LANG: c
|
||||
Linux_devel_32bit:
|
||||
VM: 'ubuntu-16.04'
|
||||
UCPU: i686
|
||||
CHANNEL: devel
|
||||
TEST_LANG: c
|
||||
|
||||
MacOS_devel_64bit:
|
||||
VM: 'macOS-10.15'
|
||||
@ -119,6 +119,29 @@ steps:
|
||||
echo "##vso[task.setvariable variable=ncpu;]$ncpu"
|
||||
displayName: 'Detecting number of cores'
|
||||
|
||||
- bash: |
|
||||
sudo dpkg --add-architecture i386
|
||||
|
||||
sudo apt-fast update -qq
|
||||
# `:i386` (e.g. in `libffi-dev:i386`) is needed otherwise you may get:
|
||||
# `could not load: libffi.so` during dynamic loading.
|
||||
DEBIAN_FRONTEND='noninteractive' \
|
||||
sudo apt-fast install --no-install-recommends --allow-downgrades -yq \
|
||||
g++-multilib gcc-multilib libcurl4-openssl-dev:i386 libgc-dev:i386 \
|
||||
libffi-dev:i386
|
||||
cat << EOF > bin/gcc
|
||||
#!/bin/bash
|
||||
exec $(which gcc) -m32 "\$@"
|
||||
EOF
|
||||
cat << EOF > bin/g++
|
||||
#!/bin/bash
|
||||
exec $(which g++) -m32 "\$@"
|
||||
EOF
|
||||
chmod 755 bin/gcc
|
||||
chmod 755 bin/g++
|
||||
displayName: 'Install dependencies (i386 Linux)'
|
||||
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['CPU'], 'i686'))
|
||||
|
||||
- bash: |
|
||||
echo "PATH=${PATH}"
|
||||
gcc -v
|
||||
@ -178,6 +201,12 @@ steps:
|
||||
# displayName: 'Downloading GMP (MacOS)'
|
||||
# condition: eq(variables['Agent.OS'], 'Darwin')
|
||||
|
||||
- bash: |
|
||||
echo "PATH=${PATH}"
|
||||
sudo apt-get install libgmp-dev
|
||||
displayName: 'Downloading GMP (Linux 32-bit)'
|
||||
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['CPU'], 'i686'))
|
||||
|
||||
- bash: |
|
||||
echo "PATH=${PATH}"
|
||||
nimble refresh
|
||||
|
Loading…
x
Reference in New Issue
Block a user