Skip to content

Commit

Permalink
Fix[ci]: config file location
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Nov 27, 2023
1 parent a88f277 commit 7ecbd00
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build Android

on:
[push, pull_request]

# 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", "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

- name: Build
run: |
sudo apt update
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-${{matrix.arch}} >build-crossfile
git clone --depth 1 https://github.com/Mesa3D/mesa
cd mesa
git apply --reject --whitespace=fix ../mesa-zink.diff || echo "git apply failed"
meson setup "build-android" \
--prefix=/tmp/zink \
--cross-file "../build-crossfile" \
-Dplatforms=android \
-Dplatform-sdk-version=25 \
-Dandroid-stub=true \
-Dllvm=disabled \
-Dxlib-lease=disabled \
-Degl=disabled \
-Dgbm=disabled \
-Dglx=disabled \
-Dopengl=true \
-Dosmesa=true \
-Dvulkan-drivers= \
-Dgallium-drivers=zink \
-Dshared-glapi=false \
-Dandroid-libbacktrace=disabled \
-Dbuildtype=release
ninja -C "build-android" install
- name: Upload libraries
uses: actions/upload-artifact@v2
with:
name: libzink_${{matrix.arch}}
path: /tmp/zink

0 comments on commit 7ecbd00

Please sign in to comment.