ci: stuff from macos ci #16
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 iOS | |
on: | |
[push, pull_request] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build iOS | |
run: | | |
ln -s vulkan_ios.pc vulkan.pc | |
brew install meson pkg-config libclc bison expat python-mako libx11 libxcb libxdamage libxext ninja gettext [email protected] | |
brew update | |
brew bundle --verbose | |
pip3 install mako | |
# git clone --depth 1 https://gitlab.freedesktop.org/mesa/drm.git | |
# cd drm | |
# meson setup "build-ios-drm" \ | |
# --prefix=/tmp/drm-static \ | |
# --cross-file "../ios-drm-aarch64" \ | |
# -Ddefault_library=static \ | |
# -Dintel=disabled \ | |
# -Dradeon=disabled \ | |
# -Damdgpu=disabled \ | |
# -Dnouveau=disabled \ | |
# -Dvmwgfx=disabled \ | |
# -Dfreedreno=enabled \ | |
# -Dvc4=disabled \ | |
# -Detnaviv=disabled | |
# ninja -C "build-ios-drm" install | |
meson setup "build-ios-aarch64" \ | |
--prefix=/tmp/asahi \ | |
--cross-file "ios-aarch64" \ | |
-Db_lundef=false \ | |
-Dllvm=disabled \ | |
-Dxlib-lease=disabled \ | |
-Degl=disabled \ | |
-Dgbm=disabled \ | |
-Dglx=disabled \ | |
-Dopengl=true \ | |
-Dosmesa=true \ | |
-Dvulkan-drivers= \ | |
-Dgallium-drivers=asahi \ | |
-Dbuildtype=release \ | |
-Dtools=asahi \ | |
-Dshared-glapi=false | |
ninja -C "build-ios-aarch64" install | |
cp -r build-ios-aarch64/src/gallium/drivers/asahi /tmp/ | |
- name: Upload libraries | |
uses: actions/upload-artifact@v2 | |
with: | |
name: libOSMesa | |
path: /tmp/asahi |