turnip驱动 #32
Workflow file for this run
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: turnip驱动 | |
on: | |
workflow_dispatch: | |
inputs: | |
mesa-version: | |
description: | | |
e.g. mesa-24.1.1 | |
https://gitlab.freedesktop.org/mesa/mesa/-/tags | |
required: false | |
default: 'mesa-23.1.1' | |
type: string | |
jobs: | |
linux-arm64: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: 克隆仓库 | |
uses: actions/checkout@v4 | |
- name: 重命名Dockerfile | |
run: mv mesa-turnip/Dockerfile-linux-arm64 Dockerfile | |
- name: 下载mesa源码 | |
run: | | |
wget https://gitlab.freedesktop.org/mesa/mesa/-/archive/${{ inputs.mesa-version }}/mesa-${{ inputs.mesa-version }}.tar.gz | |
tar xf mesa-${{ inputs.mesa-version }}.tar.gz | |
mv mesa-${{ inputs.mesa-version }} mesa | |
#wget https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-aarch64-static | |
- name: 使用action设置docker qemu #(不需要自己手动放qemu了) | |
uses: docker/setup-qemu-action@v3 | |
- name: docker开始构建 | |
run: docker build --output type=tar,dest=mesa-turnip.tar --target=out-image . | |
- name: 上传artifact | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: mesa-turnip-linux-arm64 | |
path: mesa-turnip.tar | |
# linux-x86_64: | |
# runs-on: ubuntu-24.04 | |
# steps: | |
# - name: 安装依赖 | |
# run: | | |
# sudo sed -i 's/Types: deb/Types:deb deb-src/g' /etc/apt/sources.list.d/ubuntu.sources\ | |
# && sudo apt update\ | |
# && sudo apt-get build-dep mesa -y\ | |
# && sudo apt install -y cbindgen | |
# - name: 下载源码 | |
# run: git clone https://gitlab.freedesktop.org/mesa/mesa.git | |
# - name: 编译 | |
# run: | | |
# cd mesa\ | |
# && export PWD=$(pwd)\ | |
# && meson setup build-turnip/\ | |
# && meson configure build-turnip/ \ | |
# -D prefix=/host/mesa/installdir \ | |
# -D buildtype=release \ | |
# -D dri3=enabled \ | |
# -D egl=enabled \ | |
# -D platforms=x11 \ | |
# -D gallium-drivers=swrast,virgl,zink,freedreno \ | |
# -D vulkan-drivers=freedreno \ | |
# -D opengl=false \ | |
# -D glx=disabled \ | |
# -D osmesa=true \ | |
# -D gles1=disabled \ | |
# -D gles2=enabled \ | |
# -D glvnd=enabled \ | |
# -D libunwind=disabled \ | |
# -D shared-glapi=enabled \ | |
# -D microsoft-clc=disabled \ | |
# -D valgrind=disabled \ | |
# -D tools=freedreno \ | |
# -D freedreno-kmds=kgsl \ | |
# && ninja -C build-turnip/\ | |
# && sudo ninja -C build-turnip/ install | |
# - name: 删除dri | |
# run: sudo rm -rf /host/mesa/installdir/lib/x86_64-linux-gnu/dri | |
# - name: 上传 | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: turnip-linux-x86_64 | |
# path: /host/mesa/installdir | |