commit
ab7d14add8
3 changed files with 18 additions and 7 deletions
|
@ -5,9 +5,9 @@ matrix:
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: required
|
sudo: required
|
||||||
env: BUILDARCH=ia32
|
env: BUILDARCH=ia32
|
||||||
# - os: linux
|
- os: linux
|
||||||
# sudo: required
|
sudo: required
|
||||||
# env: BUILDARCH=arm64
|
env: BUILDARCH=arm64
|
||||||
- os: osx
|
- os: osx
|
||||||
|
|
||||||
language: node_js
|
language: node_js
|
||||||
|
|
6
build.sh
6
build.sh
|
@ -5,6 +5,12 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||||
|
|
||||||
if [[ "$BUILDARCH" == "ia32" ]]; then
|
if [[ "$BUILDARCH" == "ia32" ]]; then
|
||||||
export npm_config_arch=ia32
|
export npm_config_arch=ia32
|
||||||
|
export npm_config_target_arch=ia32
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$BUILDARCH" == "arm64" ]]; then
|
||||||
|
export npm_config_arch=arm64
|
||||||
|
export npm_config_target_arch=arm64
|
||||||
fi
|
fi
|
||||||
../update_settings.sh
|
../update_settings.sh
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,15 @@ else
|
||||||
export CXXFLAGS=-m32
|
export CXXFLAGS=-m32
|
||||||
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
||||||
elif [[ $BUILDARCH == "arm64" ]]; then
|
elif [[ $BUILDARCH == "arm64" ]]; then
|
||||||
# Use the default C / C++ compilers,
|
echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
|
||||||
# because some makefiles default to CC:=gcc:
|
sudo dpkg --add-architecture arm64
|
||||||
export CC=/usr/bin/cc
|
sudo apt-get update
|
||||||
export CXX=/usr/bin/c++
|
sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
||||||
|
sudo apt-get install libx11-dev:arm64 libxkbfile-dev:arm64
|
||||||
|
export CC=/usr/bin/aarch64-linux-gnu-gcc
|
||||||
|
export CXX=/usr/bin/aarch64-linux-gnu-g++
|
||||||
|
export CC_host=/usr/bin/gcc
|
||||||
|
export CXX_host=/usr/bin/g++
|
||||||
else
|
else
|
||||||
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
|
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue