do not clone build libdrm #165
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 | |
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 |