Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #1

Merged
merged 4 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/turnip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
workflow_dispatch:
inputs:
mesa-version:
description: 'e.g. mesa-24.1.1 \n https://gitlab.freedesktop.org/mesa/mesa/-/tags'
required: false
default: 'mesa-23.1.1'
description: |
e.g. mesa-24.1.1
https://gitlab.freedesktop.org/mesa/mesa/-/tags
required: true
default: 'mesa-23.2.1'
type: string

jobs:
Expand All @@ -16,8 +18,6 @@ jobs:

- name: 克隆仓库
uses: actions/checkout@v4
with:
ref: linux-arm-turnip #指定checkout的分支

- name: 重命名Dockerfile
run: mv mesa-turnip/Dockerfile-linux-arm64 Dockerfile
Expand All @@ -38,7 +38,7 @@ jobs:
- name: 上传artifact
uses: actions/upload-artifact@v4.3.3
with:
name: mesa-turnip-linux-arm64
name: turnip-linux-arm64-${{ inputs.mesa-version }}
path: mesa-turnip.tar


Expand Down
11 changes: 5 additions & 6 deletions mesa-turnip/Dockerfile-linux-arm64
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
FROM arm64v8/ubuntu:24.04 As dev-image
WORKDIR /root
# github action有现成的qemu action,不用手动放了。还是放一下吧,好像这个更快一些
#COPY qemu-aarch64-static /usr/bin/qemu-aarch64-static
# 为了能apt build-dep需要添加deb-src。不确定security添加了src会不会有问题,但也不知道怎么排除。
RUN sed -i 's/Types: deb/Types:deb deb-src/g' /etc/apt/sources.list.d/ubuntu.sources\
&& apt update\
&& apt-get build-dep mesa -y\
&& apt install -y cbindgen python3-certifi python3-pycparser
# mesa源码
COPY mesa mesa-source
# 编译目录
RUN cd mesa-source\
# mesa源码
COPY mesa mesa-source
# 编译目录
RUN cp -r /usr/include/drm/* /usr/include\
&& cd mesa-source\
&& meson setup build-turnip/ \
-D prefix=/root/mesa \
-D buildtype=release \
Expand Down