diff --git a/.github/workflows/gcc.yml b/.github/workflows/gcc.yml index 602e521..bde5f81 100644 --- a/.github/workflows/gcc.yml +++ b/.github/workflows/gcc.yml @@ -14,6 +14,11 @@ env: CI_DEPLOY_PASSWORD: 0 CI_DEPLOY_MODULE: . jobs: + linux-armhf: + runs-on: ubuntu-16.04 + container: ubuntu:xenial + steps: + - uses: bytedeco/javacpp-presets/.github/actions/deploy-ubuntu@master linux-x86_64: runs-on: ubuntu-16.04 container: centos:6 diff --git a/build.sh b/build.sh index 6f3ad1f..af4a03e 100644 --- a/build.sh +++ b/build.sh @@ -17,6 +17,27 @@ mkdir build install GCC_INSTALL_PREFIX=$(pwd)/install case $PLATFORM in + linux-armhf) + export CC="arm-linux-gnueabihf-gcc -fPIC" + export CXX="arm-linux-gnueabihf-g++ -fPIC" + + cd gcc-$GCC_VERSION + ./contrib/download_prerequisites + cd ../build + + ../gcc-$GCC_VERSION/configure \ + --prefix=$GCC_INSTALL_PREFIX \ + --host=arm-linux-gnueabihf \ + --target=arm-linux-gnueabihf \ + --enable-checking=release \ + --enable-languages=jit \ + --enable-host-shared \ + --disable-bootstrap \ + --disable-multilib \ + --disable-nls + make -j $MAKEJ + make install + ;; linux-x86_64) export CC="gcc -m64 -fPIC" export CXX="g++ -m64 -fPIC"