install all deps #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Android | |
on: | |
[push, pull_request, workflow_dispatch] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
strategy: | |
matrix: | |
arch: [ "arm32", "aarch64" ] | |
fail-fast: false | |
name: "Build for ${{matrix.arch}}" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list | |
sudo apt update | |
sudo apt build-dep -y mesa | |
sudo apt install -y zlib1g-dev libexpat1-dev libdrm-dev libx11-dev libx11-xcb-dev libxext-dev libxdamage-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-shm0-dev libxcb-present-dev libxshmfence-dev libxxf86vm-dev libxrandr-dev libwayland-dev wayland-protocols libwayland-egl-backend-dev | |
pip3 install mako | |
export ANDROID_NDK_HOME="$ANDROID_SDK_ROOT/ndk-bundle" | |
envsubst <android-${{matrix.arch}} >build-crossfile | |
meson setup "build-android" \ | |
--prefix=/tmp/fd \ | |
--cross-file "build-crossfile" \ | |
-Dplatforms=android \ | |
-Dplatform-sdk-version=26 \ | |
-Dandroid-stub=true \ | |
-Dllvm=disabled \ | |
-Dxlib-lease=disabled \ | |
-Degl=disabled \ | |
-Dgbm=disabled \ | |
-Dglx=disabled \ | |
-Dopengl=true \ | |
-Dosmesa=true \ | |
-Dvulkan-drivers=freedreno \ | |
-Dgallium-drivers=freedreno,zink \ | |
-Dfreedreno-kmds=kgsl \ | |
-Dshared-glapi=false \ | |
-Dbuildtype=release | |
ninja -C "build-android" install | |
- name: Upload libraries | |
uses: actions/upload-artifact@v2 | |
with: | |
name: freedreno_${{matrix.arch}} | |
path: /tmp/fd |