Skip to content

Commit

Permalink
Dockerized build (#25)
Browse files Browse the repository at this point in the history
* Run in a 3rd party Docker image
* Docker build fixes: no sudo, install clang
* Support non-default NDK install dirs
  • Loading branch information
oseiskar authored Jan 21, 2021
1 parent ec9db3b commit 58894e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: kunitoki/android-ndk-r21
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Android NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;21.0.6113669' > /dev/null 2>&1
- name: Install GFortran & OpenGL deps
run: echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;21.0.6113669' > /dev/null 2>&1
- name: Install build system dependencies
run: |
sudo apt-get update
sudo apt-get install -y gfortran mesa-common-dev libglfw3-dev
apt-get update
apt-get install -y gfortran mesa-common-dev libglfw3-dev clang
- name: Build for Linux
run: |
DO_CLEAR=OFF BUILD_VISUALIZATIONS=OFF ./scripts/build.sh
Expand Down
4 changes: 3 additions & 1 deletion scripts/android/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ else
fi
export ANDROID_HOME
export ANDROID_SDK="$ANDROID_HOME"
export ANDROID_NDK="$ANDROID_HOME/ndk-bundle"
# not always installed into this default directory in, e.g., CI environments
: "${ANDROID_NDK:=$ANDROID_HOME/ndk-bundle}"
export ANDROID_NDK

# Build Eigen
# TODO: Move to component/eigen.sh
Expand Down

0 comments on commit 58894e2

Please sign in to comment.