Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
Want to see if this will work
  • Loading branch information
SolDev69 authored Nov 22, 2023
1 parent 5dee007 commit a585def
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ jobs:
build:
strategy:
matrix:
arch: [ "arm32", "aarch64" ]
arch: [ "arm32", "aarch64", "x86_64", "i686" ]
fail-fast: false

name: "Build for ${{matrix.arch}}"

runs-on: ubuntu-latest

steps:
- name: Disable symlinks in git config
run: git config --global core.symlinks false

- uses: actions/checkout@v2

Expand All @@ -25,30 +27,12 @@ jobs:
sudo apt install -y meson libxrandr-dev libxxf86vm-dev libxcb-*-dev libx11-xcb-dev libxfixes-dev libdrm-dev libx11-dev
pip3 install mako
export ANDROID_NDK_HOME="$ANDROID_SDK_ROOT/ndk-bundle"
envsubst <android-drm-${{matrix.arch}} >build-crossfile-drm
git clone --depth 1 https://gitlab.freedesktop.org/mesa/drm.git
cd drm
meson setup "build-android" \
--prefix=/tmp/drm-static \
--cross-file "../build-crossfile-drm" \
-Ddefault_library=static \
-Dintel=disabled \
-Dradeon=disabled \
-Damdgpu=disabled \
-Dnouveau=disabled \
-Dvmwgfx=disabled \
-Dfreedreno=enabled \
-Dvc4=disabled \
-Detnaviv=disabled \
-Dfreedreno-kgsl=true
ninja -C "build-android" install
cd ..
envsubst <android-${{matrix.arch}} >build-crossfile
meson setup "build-android" \
--prefix=/tmp/fd \
--prefix=/tmp/zink \
--cross-file "build-crossfile" \
-Dplatforms=android \
-Dplatform-sdk-version=26 \
-Dplatform-sdk-version=25 \
-Dandroid-stub=true \
-Dllvm=disabled \
-Dxlib-lease=disabled \
Expand All @@ -58,12 +42,11 @@ jobs:
-Dopengl=true \
-Dosmesa=true \
-Dvulkan-drivers= \
-Dgallium-drivers=swrast,freedreno \
-Dfreedreno-kmds=kgsl \
-Dgallium-drivers=swrast,zink \
-Dshared-glapi=false
ninja -C "build-android" install
- name: Upload libraries
uses: actions/upload-artifact@v2
with:
name: freedreno_${{matrix.arch}}
path: /tmp/fd
name: libzink_${{matrix.arch}}
path: /tmp/zink

0 comments on commit a585def

Please sign in to comment.