Skip to content

Commit

Permalink
[ci] add turnip ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Dec 20, 2023
1 parent 764af30 commit 7545648
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,8 @@ jobs:
-Dshared-glapi=false \
-Dandroid-libbacktrace=disabled \
-Dbuildtype=release
cd build-android
if [ ${{matrix.arch}} == 'x86_64' ]
then
meson configure -Dgallium-drivers=zink
fi
ninja install
if [ ${{matrix.arch}} == 'x86_64' ]; then meson configure "build-android" -Dgallium-drivers=zink; fi
ninja -C "build-android" install
- name: Upload libraries
uses: actions/upload-artifact@v2
with:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/turnip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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: [ "aarch64" ]
fail-fast: false

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

runs-on: ubuntu-latest

steps:
- 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-drm-${{matrix.arch}} >build-crossfile-turnip
meson build-android-${{matrix.arch}} --cross-file "../build-crossfile-turnip" \
-Dbuildtype=release \
-Dplatforms=android \
-Dplatform-sdk-version=33 \
-Dandroid-stub=true \
-Dgallium-drivers= \
-Dvulkan-drivers=freedreno \
-Dfreedreno-kmds=kgsl \
-Db_lto=true
ninja -C build-android-${{matrix.arch}}
cp src/freedreno/vulkan/libvulkan_freedreno.so /tmp/mesa
- name: Upload libraries
uses: actions/upload-artifact@v2
with:
name: turnip_${{matrix.arch}}
path: /tmp/mesa

0 comments on commit 7545648

Please sign in to comment.